visual studio razor preview code example Example: razor preview services.AddControllersWithViews().AddRazorRuntimeCompilation();