Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Add Controller on menu and can't add a View either in MVC 4.5

I just downloaded the new nopCommerce 3.2 MVC 4 application. When I open the solution in Visual Studio, I can't add a Controller : there is no "Controller...." option from the "Add" menu. There is also no "Add View" when I right click inside of a Controller.

It seems to be treating all the projects in the solution as "Web Forms".

I think is has something to do with the last Windows update. It changed something. I have the latest updates on Visual Studio.

Anyone have any idea how I can fix this? Thanks

UPDATE : Solved. Need to install this update :

[ASP.NET and Web Tools 2013.1 for Visual Studio 2012][1] : [1]: http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx

like image 976
Mike Howe Avatar asked Dec 10 '13 15:12

Mike Howe


1 Answers

You need to add {E3E379DF-F4C6-4180-9B81-6769533ABE47} as 'the first GUID' to in your project .csproj. You may not need to update your Visual Studio.

Refer to Context menu to Add Controller/View missing

like image 51
sunil4data Avatar answered Sep 23 '22 12:09

sunil4data