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