-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NativeAOT doesn't generate IL3000 and IL3001 - access to Assembly.Location property #82475
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsThe Single-File analyzer produces two warnings which are not triggered by
The NativeAOT compiler doesn't produce these warnings. There also seem to be some issue with var a = typeof(object).Assembly.Location; // IL3000
var b = typeof(object).Assembly.GetFiles(); // IL3001 But /cc @tlakollo
|
cc: @Evangelink |
We should also enable the single file roslyn analyzer when publishaot is set in the project: filed #82503. |
The Single-File analyzer produces two warnings which are not triggered by
RequiresAssemblyFiles
, but are basically intrinsics:IL3000
- basically just when accessingAssembly.Location
IL3001
- when accessingAssembly.GetFiles
and several other methodsThe NativeAOT compiler doesn't produce these warnings.
There also seem to be some issue with
RequiresAssemblyFiles
since the below program only produces analyzer warnings:But
Assembly.GetFiles
is annotated withRequiresAssemblyFiles
attribute, so I would at least expect to getIL3002
in this case (but ideallyIL3001
)./cc @tlakollo
The text was updated successfully, but these errors were encountered: