Last Updated: February 25, 2016
·
710
· wwwlicious

Always build your MVC Views

To stop those pesky view errors creeping into production, build your MVC views.

Open your .csproj file and change the following tag

<MvcBuildViews>false</MvcBuildViews>

to

<MvcBuildViews>true</MvcBuildViews>

Now when you build your project your views will be checked too.