Closed ddobric closed 2 years ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @CoffeeFlux See info in area-owners.md if you want to be subscribed.
Author: | ddobric |
---|---|
Assignees: | - |
Labels: | `area-VM-meta-mono`, `untriaged` |
Milestone: | - |
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Author: | ddobric |
---|---|
Assignees: | - |
Labels: | `arch-wasm`, `area-VM-meta-mono`, `untriaged` |
Milestone: | - |
The assemblies you load at startup in the webassembly runtime don't have a location so you are hitting https://github.com/dotnet/roslyn/blob/315c2e149ba7889b0937d872274c33fcbfe9af5f/src/Compilers/Core/Portable/MetadataReference/MetadataReference.cs#L333
Like with SingleFile applications Assembly.Location is expected to be empty in this case so this is the expected behavior.
Hi all,
trying to evaluate the CSharp expression, that fails when adding reference. Following code fails at the first line:
The error:
"Can't create a metadata reference to an assembly without location"
The same code works in a .NET 5 application. It fails when started in the Blazor web assembly standalone.
Project settings