Razor compiler no longer produces a Views assembly #459
Labels
6.0.0
Announcement
Breaking change
Documented
The breaking change has been published to the .NET Core docs
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 anAppName.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 theinternal sealed
modifiers by default and included under theAspNetCoreGeneratedDocument
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
The text was updated successfully, but these errors were encountered: