Closed hez2010 closed 8 months ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Author: | hez2010 |
---|---|
Assignees: | - |
Labels: | `untriaged`, `area-NativeAOT-coreclr` |
Milestone: | - |
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.
profile guided aot runtime directives assistant
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.
This error means that your rdxml is malformed.
It seems that the types in rdxml were rooted correctly, but failed at codegen for Microsoft.Extensions.DependencyInjection.IdentityEntityFrameworkBuilderExtensions.AddStores(IServiceCollection,Type,Type,Type)
: https://github.com/dotnet/aspnetcore/blob/3e168fe85e2330621ed12d9c9524c80e0f743dc6/src/Identity/EntityFrameworkCore/src/IdentityEntityFrameworkBuilderExtensions.cs#L29
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