runtime: Module.FullyQualifiedName throws in single-file app
On non-single file apps Module.FullyQualifiedName returns absolute path to the file of the module (which is basically always the assembly file). If the module is an in-memory module (so loaded from stream), it returns <Unknown> string.
In single-file if the module is one of the assemblies which are bundled it will throw from this property.
I think we should make it behave the same as it does for in-memory modules - so return <Unknown> for bundled assemblies.
The same applies to Module.Name (which is implemented by calling Module.FullyQualifiedName internally) - we need to test it.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
This should be fixed as of 5.0.4 https://github.com/dotnet/runtime/pull/47565
We should stop localizing this and just return hardcoded
<Unknown>Agree.