Microsoft.CodeAnalysis and Microsoft.CodeAnalysis.CSharp dlls (wasm) are included when building my Blazor app. These are by far the largest references included, and even several times larger than the Radzen dll itself.
It seems they are included as they are referenced by the Radzen library. Is this correct? If so, is it possibly to eliminate this dependency? It is adding quite much to the build size of my application.
I was looking into the same issue for the same reasons - I noticed that it's loading a 5 MB Microsoft.CodeAnalysis.CSharp.wasm, which is by far the biggest class...
Looking through the Radzen source, it seems it's only used by ExpressionParser.cs...
Then ExpressionParser.ParsePredicate<T> is used by DynamicExtensions Where<T> - Which is used by QueryableExtensionWhere<T> which is then used by RadzenDataGrid.razor.cs:
Otherwise if this is only for consumers, maybe there's a way to compartmentalize this and put it in a separate library? Like a Like a Radzen.Blazor.DynamicLinqSupport kinda extension?
A lot of people probably don't need "string to linq" support, and in a Blazor WASM context I'm trying to keep the size small... So loading a 5 MB dll for this is not ideal
This will break almost every user of Radzen Blazor Studio. We won't do that.
This has already been answered earlier in the thread. Use a 5.x.x version if you don't want this dependency.
We are currently working on a new way to enable this feature without those assemblies which will be introduced at a later point in time as a new major release.
Obviously using the string to linq syntax doesn't work anymore with this package, but if you're just using typed linq expressions everything should be fine