razor preview

C#
   services.AddControllersWithViews().AddRazorRuntimeCompilation();
Source

Also in C#: