dot NET Core MVC razor Page Not Refreshing After Changes

i'm working on dotnet core 3.0 after changes in razor view page not reflacting on browser after refreshing page. for changes reflection i will have to re execute so it's a lot of time consuming.

so what the problem cause behind it i have searched and solution is below

Solutions

Add below package using Nuget Package Manager

Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation

Add below code in Startup.cs File

 services.AddControllersWithViews().AddRazorRuntimeCompilation();

Leave a Comment