.NET 5.0 Errors

Stimulsoft Reports.NET discussion
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

.NET 5.0 Errors

Post 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]
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: .NET 5.0 Errors

Post 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.
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: .NET 5.0 Errors

Post by Lech Kulikowski »

Hello,

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

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: .NET 5.0 Errors

Post by ednt »

Thats amazing!

Thank you :)
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: .NET 5.0 Errors

Post by Lech Kulikowski »

Hello,

You are welcome.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: .NET 5.0 Errors

Post by ednt »

The Error still appears in the new .NET 5 supported version, if we use the -p:PublishTrimmed=true command :/
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: .NET 5.0 Errors

Post by HighAley »

Hello,

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

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: .NET 5.0 Errors

Post by ednt »

ok, we are waiting for you :)
Lech Kulikowski
Posts: 6237
Joined: Tue Mar 20, 2018 5:34 am

Re: .NET 5.0 Errors

Post by Lech Kulikowski »

Hello,

We will let you know about the results.

Thank you.
User avatar
ednt
Posts: 64
Joined: Tue Apr 30, 2019 9:03 am

Re: .NET 5.0 Errors

Post by ednt »

Hello,
any news? :)
Post Reply