Skip to content

[Blazor webassembly] library not working with linker disabled #358

@julienGrd

Description

@julienGrd

Hello and thanks for your work ! I use your library in one of my blazor webassembly project, but it seem not working when the linkler is disabled

You will find a reproduction project here : https://github.com/julienGrd/blazorWebassembly3.2Preview1

  • run the app
  • go to fetch data
  • open the chrome console, you will see this exception
System.TypeInitializationException: The type initializer for 'System.Linq.Dynamic.Core.DynamicQueryableExtensions' threw an exception. ---> System.Exception: Specific method not found: All ---> System.InvalidOperationException: Sequence contains no matching element

It seem this issue is related to this one on mono, if it can help : mono/mono#12917

if you disable the linker(in the webassembly csproj) there is no longer problem, but it's not a good thing and make the app bigger

 <PropertyGroup>
    <BlazorWebAssemblyEnableLinking>false</BlazorWebAssemblyEnableLinking>
  </PropertyGroup>

thanks for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions