Tuesday, December 20, 2011

Compiling MVC Views

One of the initial complaints I had working with MVC 3 was that the views don't compile at runtime.

Came across this today, thanks Phil!

http://haacked.com/archive/2011/05/09/compiling-mvc-views-in-a-build-environment.aspx

In Summary:
Open up your .csproj file and update the MvcBuildViews value: <MvcBuildViews>true</MvcBuildViews>