razor autoreload on 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);