Enable ASP.NET Core 7.0 Runtime compilation

Install the package

Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation

In Program.cs add AddRazorRuntimeCompilation() to builder.Services.AddControllersWithViews()

builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
Share

Leave a Reply

Your email address will not be published. Required fields are marked *