Referencing Microsoft.CSharp.dll #65806
-
I am using a package which dynamically loads Microsoft.CSharp using Assembly.Load(new AssemblyName("Microsoft.CSharp")): The problem I'm having is this fails to load in a .NET 5 WebAssembly(Uno Bootstrap) because my WASM package doesn't include Microsoft.CSharp. I would usually solve this be referencing the assembly in my project which ensures it gets compiled into the WASM package. I tried to add a DLL reference via Add Project Reference -> Browse and choose: Any insight into why it is like this, or ideas on other troubleshooting I might try would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
netcore50
isn't .NET 5. It was used for Windows 8 Store, a badly chosen name.Microsoft.CSharp
is an inbox library in .NET Core, and always referenced. I think you need to configure ILLink to preserve it.