-
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
ilc compilation failure: Invalid IL or CLR metadata #99047
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsDescriptionI'm experimenting with my profile guided aot runtime directives assistant against an asp.net core + efcore app, and managed to produce a rd.xml for it. Reproduction StepsRepro: Expected behaviorNo compilation failure. Actual behavior
Regression?No response Known WorkaroundsNo response Configuration.NET 8.0.200 Other informationNo response
|
rdxml is unsupported: https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/rd-xml-format.md . We plan to delete the support eventually. This error means that your rdxml is malformed. We know that the experience for diagnosing wrong rdxml is bad. We do not plan to improve it.
You may want to consider providing this information to the AOT compiler via additional C# source or IL assembly that has dynamically unreachable method with additional roots. |
It seems that the types in rdxml were rooted correctly, but failed at codegen for |
rdxml is not required to reproduce this. It is enough to just call the AddStores method in the specific EF core version. |
Thank you for reporting this! |
Description
I'm experimenting with my profile guided aot runtime directives assistant against an asp.net core + efcore app, and managed to produce a rd.xml for it.
But when I build it with NativeAOT, it failed with
Invalid IL or CLR metadata
on[Microsoft.AspNetCore.Identity.EntityFrameworkCore]Microsoft.Extensions.DependencyInjection.IdentityEntityFrameworkBuilderExtensions.AddStores(IServiceCollection,Type,Type,Type)
Reproduction Steps
Repro:
WebSample.zip
Expected behavior
No compilation failure.
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
.NET 8.0.200
Other information
No response
The text was updated successfully, but these errors were encountered: