So you heard about (that wonderful and addictive) ASP.MET MVC and started thinking to jump into that by converting your existing ASP.NET web application to ASP.NET MVC ? There are plenty of tutorials available online to help you in that .Scott gives step by step instruction in this tutirial. I also followed this link to do the same. One thing i found missing is , Scot did not mention in his post how to fix the issue of “Add View/ Add Controller menus”  not appearing when you right click on the Controller/ View folders. I just want to show that here.

 

The reason why the menus are not coming is visual studio IDE do not consider this as a real ASP.NET MVC project because the project file does not say so. So we should update the project file to include the project type guid  for ASP.NET MVC and then the IDE willl start supporting the menus specific for ASP.NET MVC type project.

 

Step 1

Go to your solution explorer and unload the existing ASP.NET project by right clicking and selecting “Unload Project

Step 2

Right Click the Project in solution explorer and select “Edit your project file name

Step 3

 

Go to the Element called “ProjectTypeGuids” and Add “{E53F8FEA-EAE0-44A6-8774-FFD645390401};” infront of the existing content.

Before Adding

After Adding

And We are all set to go and rock

I would love to know how many of you went back to web forms after working  on an MVC project ?  i will buy a coffee for you if your answer is yes.