aspnet core site razor pages have to restart project to show html changes 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);