Enabling Razor Runtime Compilation after creating your ASP.NET Core app



Enabling Razor Runtime Compilation after creating your ASP.NET Core app

Enabling Razor Runtime Compilation after creating your ASP.NET Core app

#aspnetcore #dotnet #dotnetcore

All about Razor Runtime Compilation in .NET Core MVC – I recently came across an interesting issue where after starting a new ASP.NET Core 5.0 .NET 5 MVC project using the “ASP.NET Core Web App (Model-View-Controller)” template did not include the ability to update .cshtml Razor files without recompiling and restarting the whole app. There is a checkbox to “Enable Razor Runtime Compilation” when creating the project but if you miss it it can be tricky to add.

Comments are closed.