Add Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package to the project Add the following in Startup.cs/Program.cs: services.AddControllersWithViews().AddRazorRuntimeCompilation();
Add Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation NuGet package to the project Add the following in Startup.cs/Program.cs: services.AddControllersWithViews().AddRazorRuntimeCompilation();