Click here to Skip to main content
15,887,596 members
Articles / Web Development / ASP.NET
Tip/Trick

How to Enable MVC Views to Compile?

Rate me:
Please Sign up or sign in to vote.
4.56/5 (5 votes)
28 Sep 2014CPOL 22.3K   7   6
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)


Written By
Software Developer (Senior) Mindfire Solutions
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy Vote 5 Pin
Shemeemsha (ഷെമീംഷ)2-Oct-14 5:45
Shemeemsha (ഷെമീംഷ)2-Oct-14 5:45 
QuestionNeed for compiling View Pin
Murali Gowda28-Sep-14 20:52
professionalMurali Gowda28-Sep-14 20:52 
AnswerRe: Need for compiling View Pin
Rahul D.28-Sep-14 22:27
Rahul D.28-Sep-14 22:27 
GeneralRe: Need for compiling View Pin
Murali Gowda28-Sep-14 22:58
professionalMurali Gowda28-Sep-14 22:58 
GeneralRe: Need for compiling View Pin
Pankaj_chs28-Sep-14 23:05
professionalPankaj_chs28-Sep-14 23:05 
GeneralMy vote of 5 Pin
Humayun Kabir Mamun28-Sep-14 19:18
Humayun Kabir Mamun28-Sep-14 19:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.