65.9K
CodeProject is changing. Read more.
Home

How to Enable MVC Views to Compile?

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.56/5 (5 votes)

Sep 28, 2014

CPOL
viewsIcon

22782

How to enable MVC views to compile?

Step 1

Unload Project - Right click on project in solution explorer, select Unload Project.

Step 2

Edit Project - Right click and select ‘Edit Project and project XML will load in the editor window.

Step 3

Find <MvcBuildViews>false</MvcBuildViews> in Project XML file and change this to <MvcBuildViews>true</MvcBuildViews>.

Step 4

Save the Project XML file.

Step 5

Reload Project - Right click on the project and select ‘Reload Project’.

Now when Project compiles, views will also be compiled.