-
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
Annotate remaining runtime libraries for NativeAOT #75480
Comments
Tagging subscribers to this area: @dotnet/area-system-xml Issue DetailsThe below set of runtime assemblies need to be annotated for AOT (the # of warnings might not be accurate and need to be validated). Related issues - #69739, #61231, #67741
|
our systems expect exactly 1 area label -- I'm assuming you're doing it @LakshanF so leaving area-nativeaot-coreclr. |
|
What's the warning? Should |
I think that is a goal. There are some places where |
Yes, my intention is that Linq.Expressions won't be used in basic ASP.NET Core app in .NET 8. From my previous investigations, it adds ~1MB to the app size. With dotnet/aspnetcore#46020 (comment) we have eliminated it from the core logic. And saved 1.3 MB. |
* EnableAotAnalyzer by default for src libraries This flips the default of EnableAotAnalyzer to true so all new libraries are analyzed by default. It also allows us to easily see which libraries haven't been annotated yet. I also fixed the warnings in 2 libraries that were really quick: System.Memory.Data and System.ComponentModel.TypeConverter. Contributes to #75480
Contributes to dotnet#75480
* EnableAotAnalyzer for System.Diagnostics.EventLog Contributes to #75480 * EnableAotAnalyzer for System.Diagnostics.PerformanceCounters * Avoid boxing T.
* EnableAotAnalyzer by default for src libraries This flips the default of EnableAotAnalyzer to true so all new libraries are analyzed by default. It also allows us to easily see which libraries haven't been annotated yet. I also fixed the warnings in 2 libraries that were really quick: System.Memory.Data and System.ComponentModel.TypeConverter. Contributes to dotnet/runtime#75480 Commit migrated from dotnet/runtime@ea7e1c7
This should be done now. |
This is not done. We still disable the AOT analyzer in the following projects:
Line 9 in efde006
runtime/src/libraries/System.DirectoryServices/src/System.DirectoryServices.csproj Line 7 in efde006
runtime/src/libraries/System.ServiceModel.Syndication/src/System.ServiceModel.Syndication.csproj Line 6 in efde006
runtime/src/libraries/System.Resources.Extensions/src/System.Resources.Extensions.csproj Line 6 in efde006
Line 13 in efde006
Line 8 in efde006
We need to annotate those libraries for NativeAOT and enable the analyzer. runtime/src/libraries/System.Reflection.Context/src/System.Reflection.Context.csproj Line 4 in efde006
Line 6 in efde006
|
The below set of runtime assemblies need to be annotated for AOT (the # of warnings might not be accurate and need to be validated). Related issues - #69739, #61231, #67741
The text was updated successfully, but these errors were encountered: