View Issue Details

IDProjectCategoryView StatusLast Update
0002692NoesisGUIC# SDKpublic2023-09-25 21:18
Reporterdarthmaule2 Assigned Tosfernandez  
PrioritynormalSeverityfeatureReproducibilityalways
Status assignedResolutionopen 
Product Version3.2.1 
Target Version3.2 
Summary0002692: Noesis.GUI not Trimmable / AOT compatible
DescriptionI'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
TagsC#
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)

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