asp.net razor pages 3.1 a-tag no-refresh 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);