Skip to content

[wasm][coreclr] Assembly.GetExecutingAssembly() returns null #120905

@radekdoulik

Description

@radekdoulik

Repro

using System.Reflection;

Console.WriteLine("execution assembly: " + Assembly.GetExecutingAssembly());
if (Assembly.GetExecutingAssembly() == null)
{
    Console.WriteLine("execution assembly is null");
}
else if (string.IsNullOrEmpty(Assembly.GetExecutingAssembly().ToString()))
{
    Console.WriteLine("execution assembly to string is empty");
}
else
{
    Console.WriteLine("execution assembly location: " + Assembly.GetExecutingAssembly().Location);
}

outputs

execution assembly: 
execution assembly location is null

On wasm with corerun

This also fails in InterpreterTester runtime test.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions