how to refresh page when changing in c# asp.net core mvc code example
Example: razor can't refresh pages without restarting project
services.AddMvc().AddRazorOptions(options => options.AllowRecompilingViewsOnFileChange = true);
services.AddMvc().AddRazorOptions(options => options.AllowRecompilingViewsOnFileChange = true);