In a Blazor app, I want to load an external assembly and execute a method. For this, I have created a new ASP.Net Core webapplication using the Blazor template.
Then, in
This is caused by the blazor linker stripping out the dependency to netstandard
since it's not explicitly used in the main WebAssemblyHost project.
When dynamically loading a DLL that uses netstandard
, it will assume that it was already loaded and crash.
If you plan to load assemblies dynamically, I recommend using
false
to ensure non of the base dependencies is stripped out.