Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile views at build time VS2010? [duplicate]

Possible Duplicate:
ASP.Net MVC - Compiler Errors in Views

I'm using ASP.NET MVC 2 with Visual Studio 2010, and I hate runtime errors. Compile errors that only happen when I browse that page are almost as bad.

Is there a way I can have my views compile when I hit build?

like image 370
C. Ross Avatar asked Dec 21 '10 13:12

C. Ross


1 Answers

Does enabling MvcBuildViews help?

To enable MvcBuildViews make the following change in your project file

<MvcBuildViews>true</MvcBuildViews>
like image 120
hangy Avatar answered Oct 27 '22 10:10

hangy