Skip to content
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

Razor compiler no longer produces a Views assembly #459

Open
captainsafia opened this issue Apr 6, 2021 · 1 comment
Open

Razor compiler no longer produces a Views assembly #459

captainsafia opened this issue Apr 6, 2021 · 1 comment
Labels
6.0.0 Announcement Breaking change Documented The breaking change has been published to the .NET Core docs

Comments

@captainsafia
Copy link

captainsafia commented Apr 6, 2021

Razor compiler no longer produces a Views assembly

The Razor compiler no longer produces a separate Views.dll containing the CSHTML views defined in an application.

Version introduced

.NET 6 Preview 3

Old behavior

The Razor compiler utilized a two-step compilation process that produced a main AppName.dll assembly containing application types and an AppName.Views.dll assembly that contains the generated views defined in the application. Generated view types were public and under the "AspNetCore" namespace.

New behavior

Both views and application types are included in a single AppName.Views.dll assembly. View types are augmented with the internal sealed modifiers by default and included under the AspNetCoreGeneratedDocument namespace.

Reason for change

This change improves build performance for applications that use Razor views by removing the two-step compilation process and also allows Razor views to participate in the hot reload experience for VS.

Recommended action

N/A

Category

ASP.NET

Affected APIs

Not detectable via API analysis

Issue metadata

  • Issue type: breaking-change
@aspnet aspnet locked as resolved and limited conversation to collaborators Apr 6, 2021
@captainsafia
Copy link
Author

Please post questions and comments in dotnet/razor#7577

@Rick-Anderson Rick-Anderson added the Documented The breaking change has been published to the .NET Core docs label Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
6.0.0 Announcement Breaking change Documented The breaking change has been published to the .NET Core docs
Projects
None yet
Development

No branches or pull requests

2 participants