Skip to content

Razor Pages: GenerateMvcApplicationPartsAssemblyAttributes has an incorrect description #34161

@edahlberg

Description

@edahlberg

Description

The GenerateMvcApplicationPartsAssemblyAttributes option still very much used in .NET 6+. It's used right there:

https://github.com/dotnet/sdk/blob/fc58e122239d2b640aac0584028dc820fee65b09/src/RazorSdk/Targets/Microsoft.NET.Sdk.Razor.MvcApplicationPartsDiscovery.targets#L22

If you set it to false in .Net 8, MvcApplicationPartsAssemblyInfo won't be generated for your DLL. This can be easily observed with EmitCompilerGeneratedFiles enabled. Clearly this option is "used", since it has effects on the compilation.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/razor-pages/sdk?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/razor-pages/sdk.md

Document ID

6a25fc79-b9b3-4bbf-4fde-8e44b3d8014e

Article author

@tdykstra

Related Issues


Associated WorkItem - 344975

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions