.NET6 Application No Longer Generates A Separate Assembly For Views By The Razor Compiler[.NET6 Feature]
In this article, we will understand a .NET6 feature that is in a .NET6 application no longer generates a separate assembly for views(.cshtml file) by the razor compiler.
.NET5 Or Below Version Generates Separate Views(.cshtml) Assembly:
For .NET5 or below versions razor compiler produces a separate views assembly that contained views and pages(.cshtml files) in the UI application.
.NET6 No Separate Views Assembly File:
From .NET6 razor compiler builds the views and pages(.csthml) into the UI project assembly itself.
This change improves the application build performance, enables single file deployment, and enables these types to work for the Hot Reload(Developers option to reflect changes immediately).
Video Session:
Wrapping Up:
Hopefully, I think this article delivered some useful information on a .NET6 feature no separate assembly file generation for views(.cshtml files). I love to have your feedback, suggestions, and better techniques in the comment section below.
Support Me!
Buy Me A Coffee
PayPal Me
Comments
Post a Comment