View Issue Details

IDProjectCategoryView StatusLast Update
0002692NoesisGUIC# SDKpublic2025-08-06 17:35
Reporterdarthmaule2 Assigned Tohcpizzi  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Product Version3.2.1 
Target Version3.2.9Fixed in Version3.2.9 
Summary0002692: Noesis.GUI not Trimmable / AOT compatible
Description

I'm trying to AOT-compile my application.

As a first step, I try to trim my application, as that is required for AOT-compilation.
<PublishTrimmed>true</PublishTrimmed>

This produces this warning about Noesis.GUI:
noesis.gui\3.2.1\lib\netstandard2.0\Noesis.GUI.dll : warning IL2104: Assembly 'Noesis.GUI' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries

PlatformAny

Activities

darthmaule2

darthmaule2

2023-09-16 16:49

reporter   ~0008747

I also get this warning about the Noesis.GUI nuget package when compiling with IsAotCompatible in my project file:

warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win10-arm, win10-x64, win10-x86.
Affected libraries: Noesis.GUI. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default.
See https://aka.ms/dotnet/rid-usage for details.

darthmaule2

darthmaule2

2023-09-16 16:50

reporter   ~0008748

I'll my testing is done with NoesisGUI 3.2.1 and .NET 8.0 RC1

darthmaule2

darthmaule2

2023-09-21 12:31

reporter   ~0008761

Also there is an issue with the WebBrowser when publishing as a single file (required by AOT)

So these in the .csproj file:
<SelfContained>true</SelfContained>
<PublishSingleFile>true</PublishSingleFile>

Get this error:
System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.ArgumentNullException.Throw(String paramName)
at System.IO.Path.Combine(String path1, String path2)
at NoesisApp.WebBrowser.StaticInitialize()
at NoesisApp.WebBrowser..ctor()
at lambda_method256(Closure)
at Noesis.Extend.CreateInstance(IntPtr nativeType, IntPtr cPtr)

darthmaule2

darthmaule2

2024-10-26 12:17

reporter   ~0010066

Just a quick update... I tried this again with Noesis 3.2.3 and noticed it's both Noesis.GUI and Noesis.App that produce trim warnings:

....nuget\packages\noesis.app\3.2.3\lib\netstandard2.0\Noesis.App.dll : warning IL2104: Assembly 'Noesis.App' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
...\source\repos\theia\sbc_sw\src\SystemUpdate\SystemUpdate\SystemUpdate.csproj
....nuget\packages\noesis.gui\3.2.3\lib\netstandard2.0\Noesis.GUI.dll : warning IL2104: Assembly 'Noesis.GUI' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries
...\source\repos\theia\sbc_sw\src\SystemUpdate\SystemUpdate\SystemUpdate.csproj

Issue History

Date Modified Username Field Change
2023-09-16 16:38 darthmaule2 New Issue
2023-09-16 16:38 darthmaule2 Tag Attached: C#
2023-09-16 16:49 darthmaule2 Note Added: 0008747
2023-09-16 16:50 darthmaule2 Note Added: 0008748
2023-09-18 16:23 sfernandez Assigned To => sfernandez
2023-09-18 16:23 sfernandez Status new => assigned
2023-09-18 16:23 sfernandez Target Version => 3.2
2023-09-21 12:31 darthmaule2 Note Added: 0008761
2024-09-12 17:45 sfernandez Assigned To sfernandez => hcpizzi
2024-10-26 12:17 darthmaule2 Note Added: 0010066
2025-08-06 17:03 sfernandez Target Version 3.2 => 3.2.9
2025-08-06 17:35 sfernandez Status assigned => resolved
2025-08-06 17:35 sfernandez Resolution open => fixed
2025-08-06 17:35 sfernandez Fixed in Version => 3.2.9