mercredi 16 décembre 2020

Blazor WebAssembly Reflection Missing System.Runtime

​I have started to work with Blazor and setup a hosted web-assembly application.

Within the App.Razor, I am using lazy loaded assemblies which are loaded from an API and then use Reflection to inspect each dll for an implementation of a specific interface.

This works perfectly fine when running the solution via Visual Studio (debugging). When I publish the solution, I am getting an error when loading the libraries stating System.Runtime 5.0.0.0 is missing.

This is working whenever it is being started in visual studio but not when running the published code.

I have tried this using Blazor server and this is working perfectly fine.

I have tried to work with adding false to see if the problem is caused by the linking but the issue still exists.

I have tried this on net5, net5.0.1 and net5 RC2.

Any advice would be much appreciated.

Thanks in advance​





Aucun commentaire:

Enregistrer un commentaire