Page 1 of 2

.NET 5.0 Errors

Posted: Thu Sep 17, 2020 3:38 pm
by ednt
Hello,

System: Windows 10 Pro x64
Project: Winforms (C#)
Nuget Packages: Stimulsoft.Dashboards.Win, Stimulsoft.Reports.Net (both 2020.4.2)
Visual Studio Version: 2019 16.8.0 Preview 3.0

If I publish my App with these command:

dotnet publish -o bin\Release -r win-x86 -c Release --self-contained true -p:PublishTrimmed=true -p:PublishReadyToRun=true -p:PublishSingleFile=true /p:DebugType=None /p:DebugSymbols=false

I get this error:

D:\Stimulsoft\Stimulsoft.Reports.NetCore\Stimulsoft.Win\Stimulsoft.Editor\SyntaxParsers\NetRepository.cs(2880,4): error IL1005: Stimulsoft.Editor.NetTypes.GetTypeByName(String,IList,Boolean): Error processing method 'Stimulsoft.Editor.NetTypes.GetTypeByName(String,IList,Boolean)' in assembly 'Stimulsoft.Editor.dll' [h:\entwicklung\C#\ReportePro\ReportePro-Client\ReportePro.csproj]
Mono.Linker.LinkerFatalErrorException: D:\Stimulsoft\Stimulsoft.Reports.NetCore\Stimulsoft.Win\Stimulsoft.Editor\SyntaxParsers\NetRepository.cs(2880,4): error IL1005: Stimulsoft.Editor.NetTypes.GetTypeByName(String,IList,Boolean): Error processing method 'Stimulsoft.Editor.NetTypes.GetTypeByName(String,IList,Boolean)' in assembly 'Stimulsoft.Editor.dll'
---> System.NullReferenceException: Object reference not set to an instance of an object.
at Mono.Linker.Dataflow.ReflectionMethodBodyScanner.HandleCall(MethodBody callingMethodBody, MethodReference calledMethod, Instruction operation, ValueNodeList methodParams, ValueNode& methodReturnValue)
at Mono.Linker.Dataflow.MethodBodyScanner.HandleCall(MethodBody callingMethodBody, Instruction operation, Stack`1 currentStack)
at Mono.Linker.Dataflow.MethodBodyScanner.Scan(MethodBody methodBody)
at Mono.Linker.Dataflow.ReflectionMethodBodyScanner.ScanAndProcessReturnValue(MethodBody methodBody)
at Mono.Linker.Steps.MarkStep.MarkReflectionLikeDependencies(MethodBody body, Boolean requiresReflectionMethodBodyScanner)
at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method, DependencyInfo& reason)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.Process(LinkContext context)
at Mono.Linker.Driver.Run(ILogger customLogger)
Die Assemblygröße wird optimiert, dies kann das Verhalten der App ändern. Stellen Sie sicher, dass nach der Veröffentlichung Tests durchgeführt werden. Informationen finden Sie unter https://aka.ms/dotnet-illink.
C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(41,5): error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. [h:\entwicklung\C#\ReportePro\ReportePro-Client\ReportePro.csproj]

Re: .NET 5.0 Errors

Posted: Fri Sep 18, 2020 6:31 am
by Lech Kulikowski
Hello,

At the current moment, NET Core 5.0 is not supporting.
We are working on that task, we will let you know about the result.

Thank you.

Re: .NET 5.0 Errors

Posted: Mon Sep 28, 2020 7:54 am
by Lech Kulikowski
Hello,

Was added supporting for NET Core 5.0. Will be available in the next build.

Thank you.

Re: .NET 5.0 Errors

Posted: Wed Oct 28, 2020 9:43 am
by ednt
Thats amazing!

Thank you :)

Re: .NET 5.0 Errors

Posted: Fri Oct 30, 2020 8:05 am
by Lech Kulikowski
Hello,

You are welcome.

Re: .NET 5.0 Errors

Posted: Mon Dec 14, 2020 1:16 pm
by ednt
The Error still appears in the new .NET 5 supported version, if we use the -p:PublishTrimmed=true command :/

Re: .NET 5.0 Errors

Posted: Wed Dec 16, 2020 8:58 am
by HighAley
Hello,

We need some time for analysis of the issue.
we will let you know about the results.

Thank you.

Re: .NET 5.0 Errors

Posted: Wed Dec 16, 2020 9:22 am
by ednt
ok, we are waiting for you :)

Re: .NET 5.0 Errors

Posted: Thu Dec 17, 2020 10:42 pm
by Lech Kulikowski
Hello,

We will let you know about the results.

Thank you.

Re: .NET 5.0 Errors

Posted: Tue Feb 09, 2021 1:09 pm
by ednt
Hello,
any news? :)