-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
NativeAOTarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesuntriaged
Description
I see this warning when attempting to trim an ASP.NET Core app.
/Users/rich/git/dotnet-docker/samples/aspnetapp/aspnetapp/Program.cs(6,1): warning IL2026: Using member 'Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddRazorPages(IServiceCollection)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Razor Pages does not currently support native AOT. https://aka.ms/aspnet/nativeaot [/Users/rich/git/dotnet-docker/samples/aspnetapp/aspnetapp/aspnetapp.csproj]
I find it confusing. It would be more helpful to me if the following subset said this:
... can break functionality when trimming application code. Razor Pages does not currently support trimming or native AOT. Learn more: https://aka.ms/aspnet/trimming
Metadata
Metadata
Assignees
Labels
NativeAOTarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesuntriaged