Dec 10, 2015

Compile your asp.net mvc Razor views into a separate dll

A "step-by-step" guide on how to compile your razor views into a separate dll. Good post about how to package your MVC razor views into a shared .NET assembly that you can use in multiple projects. In the past, I often had duplicated views / helpers in each project that was using ASP.NET MVC 3 w/Razor. This was getting to be a maintenance headache, so I looked around and saw Chris Van De Steeg’s post about how to actually accomplish this.
Pre-compiling-razor-views

Precompile-mvc-views

Detect-errors-of-asp-net-mvc-views