-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Assembly.GetCallingAssembly
should be marked with [RequiresDynamicCode]
.
#71290
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @dotnet/area-system-reflection Issue DetailsAs indicated in #53825,
|
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr Issue DetailsAs indicated in #53825,
|
@LakshanF set 8.0 milestone as I am not sure when you are planning to work on this, feel free to change as needed |
So it's approved I guess. I am working on it. |
Assembly.GetCallingAssembly
with [RequiresDynamicCode]
.Assembly.GetCallingAssembly
should be marked with [RequiresDynamicCode]
.
As per discussion in #71973 (comment) we want to obsolete this API instead, after dotnet/csharplang#4984 implemented |
As indicated in #53825,
Assembly.GetCallingAssembly
is not supported in AOT environments. It should be applied the[RequiresDynamicCodeAttribute]
to make this visible.The text was updated successfully, but these errors were encountered: