Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IL1005 in blazor wasm #1597

Closed
stefanloerwald opened this issue Oct 28, 2020 · 1 comment
Closed

IL1005 in blazor wasm #1597

stefanloerwald opened this issue Oct 28, 2020 · 1 comment

Comments

@stefanloerwald
Copy link

ILLink : error IL1005: DevExpress.Blazor.DataSourceLoadOptionsExtensions.AddToNameValueCollection<T>(NameValueCollection,String,T[]): Error processing method 'DevExpress.Blazor.DataSourceLoadOptionsExtensions.AddToNameValueCollection<T>(NameValueCollection,String,T[])' in assembly 'DevExpress.Blazor.dll' [/home/runner/work/path/to/project.csproj]
  Mono.Linker.LinkerFatalErrorException: ILLink: error IL1005: DevExpress.Blazor.DataSourceLoadOptionsExtensions.AddToNameValueCollection<T>(NameValueCollection,String,T[]): Error processing method 'DevExpress.Blazor.DataSourceLoadOptionsExtensions.AddToNameValueCollection<T>(NameValueCollection,String,T[])' in assembly 'DevExpress.Blazor.dll'
   ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
     at Mono.Linker.Dataflow.ReflectionMethodBodyScanner.GetValueNodeFromGenericArgument(TypeReference genericArgument)
     at Mono.Linker.Dataflow.ReflectionMethodBodyScanner.ProcessGenericArgumentDataFlow(GenericParameter genericParameter, TypeReference genericArgument, IMemberDefinition source)
     at Mono.Linker.Steps.MarkStep.MarkGenericArgumentConstructors(IGenericInstance instance, IMemberDefinition sourceLocationMember)
     at Mono.Linker.Steps.MarkStep.MarkGenericArguments(IGenericInstance instance, IMemberDefinition sourceLocationMember)
     at Mono.Linker.Steps.MarkStep.GetOriginalMethod(MethodReference method, DependencyInfo reason, IMemberDefinition sourceLocationMember)
     at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference, DependencyInfo reason, IMemberDefinition sourceLocationMember)
     at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction, MethodDefinition method, 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.ProcessStep(LinkContext context, IStep step)
     at Mono.Linker.Pipeline.Process(LinkContext context)
     at Mono.Linker.Driver.Run(ILogger customLogger)
  Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Error: /home/runner/.dotnet/sdk/5.0.100-rc.2.20479.15/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. [/home/runner/work/path/to/project.csproj]
Error: Process completed with exit code 1.
@mateoatr
Copy link
Contributor

This should have been fixed by this PR: #1566 Could you please try a master branch linker?

@mateoatr mateoatr closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants