Open
Description
All parts of the TypeReference for such an enum are right, it's just not flagged as a value type. As a result, using that TypeReference elsewhere results in load/resolve-time errors when using the modified assembly.
Looks like the reading for custom attribute fields/properties (AssemblyReader.ReadCustomAttributeFieldOrPropType
) sees ElementType.Enum and then bases the TypeReference on the type name it finds.
Metadata
Assignees
Labels
No labels