.NET 5.0 Errors
Posted: Thu Sep 17, 2020 3:38 pm
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]
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]