Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / ASP.NET

How to Enable MVC Views to Compile?

4.56/5 (5 votes)
28 Sep 2014CPOL 22.8K  
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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)