Dynamic LINQ Blazor WebAssembly
It is possible to use the Dynamic LINQ (
System.Linq.Dynamic.Core) library in a Blazor WebAssembly client project.
However you can run into the issues as described below, read further on how to fix this.
When running the Blazor WebAssembly client project in Release mode, you can get errors in the console like this:
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer Unhandled exception rendering component: Operator '&&' incompatible with operand types 'Boolean' and 'Boolean' Operator '&&' incompatible with operand types 'Boolean' and 'Boolean' (at index 21)
The solution for these issue is in most cases to add the following line to the
.csproj client project:
If you want more fine-grained control on which assembles are linked, see this link.