Skip to content

RuntimeLicenseContext.GetSavedLicenseKey throws exception for dynamic assemblies #51924

Closed

Description

Description

// Assemblies loaded in memory return empty string from Location.
string location = asm.Location;
if (location == string.Empty)
continue;

In the System.ComponentModel.Design.RuntimeLicenseContext the following lines state that Location returns null for in memory loaded assemblies.

However System.Reflection.Emit.InternalAssemblyBuilder throws an exception when Location is accessed:

public override string Location => throw new NotSupportedException(SR.NotSupported_DynamicAssembly);

Configuration

.NET 5.0
Windows x86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions