You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NativeAOT xml support has to be able to understand cecil format for types #73083
Other members rely on the CecilTypeNameFormatter to obtain the Cecil representation of a member. For example, we will pass the name of the Cecil member and a TypeDesc and we will get back the Internal.TypeSystem representation.
In the case of type processing, we have a ModuleDesc and we will attempt to find the type name inside of it. For this purpose, we use the CustomAttributeTypeNameParser.GetTypeByCustomAttributeTypeName() which basically attempts to try to get a TypeDesc out of the ModuleDesc by name, what it doesn't account for is that the name is Cecil formatted causing mismatches for nested types and generics. Need to implement a different CustomAttributeTypeNameParser that also converts from Cecil format to Internal.TypeSystem one.
For now, there is a change that replaces the Cecil nested type separator character ("/") for the Internal.TypeSystem nested type separator character ("+") to enable basic functionality.
Reproduction Steps
Add an xml that has a nested type or generic using cecil format
Activity
tlakollo commentedon Feb 21, 2023
Closed via #82145