Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for exported types in illink XML formats #102487

Merged
merged 1 commit into from
May 22, 2024

Conversation

MichalStrehovsky
Copy link
Member

Addresses the TODO in the native AOT port.

Ran into inability of rooting things from mscorlib with the illink XML format on native AOT so decided to fix the TODO.

(It was possible to work around with Type.GetType (that's a supported pattern) or rd.xml, but this should work with the descriptors too.)

Cc @dotnet/ilc-contrib

Addresses the TODO in the native AOT port.

Ran into inability of rooting things from mscorlib with the illink XML format on native AOT so decided to fix the TODO.

(It was possible to work around with `Type.GetType` (that's a supported pattern) or rd.xml, but this should work with the descriptors too.)
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.


TypeDesc? type = CecilCompatibleTypeParser.GetType(assembly, fullname);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was already returning a resolved type, so exported types worked, but we "forgot" we got to the type through a forwarder and didn't preserve it. The newly added type.Module != assembly is basically "was this a forwarder?".

@MichalStrehovsky MichalStrehovsky merged commit 4157348 into dotnet:main May 22, 2024
91 of 93 checks passed
@MichalStrehovsky MichalStrehovsky deleted the exportedtypes branch May 22, 2024 12:14
steveharter pushed a commit to steveharter/runtime that referenced this pull request May 28, 2024
Addresses the TODO in the native AOT port.

Ran into inability of rooting things from mscorlib with the illink XML format on native AOT so decided to fix the TODO.

(It was possible to work around with `Type.GetType` (that's a supported pattern) or rd.xml, but this should work with the descriptors too.)
Ruihan-Yin pushed a commit to Ruihan-Yin/runtime that referenced this pull request May 30, 2024
Addresses the TODO in the native AOT port.

Ran into inability of rooting things from mscorlib with the illink XML format on native AOT so decided to fix the TODO.

(It was possible to work around with `Type.GetType` (that's a supported pattern) or rd.xml, but this should work with the descriptors too.)
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants