无添加控制器菜单上,不能在MVC 4.5添加视图或者 [英] No Add Controller on menu and can't add a View either in MVC 4.5

查看:150
本文介绍了无添加控制器菜单上,不能在MVC 4.5添加视图或者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载的新nopCommerce 3.2 MVC 4应用程序。
当我在Visual Studio中打开该解决方案,
我不能添加一个控制器:有从添加菜单中没有控制器......选项。
也没有添加视图当我右键单击一个控制器内。

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.

这似乎是处理解决方案中所有项目的Web窗体。

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

我认为这是有事情做与上次Windows更新。它改变了一些东西。
我对Visual Studio中的最新更新。

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

更新:解决。需要安装此更新:

[ASP.NET和Web工具2013.1为Visual Studio 2012] [1] [1]:<一href=\"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\">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

[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

推荐答案

您需要{E3E379DF-F4C6-4180-9B81-6769533ABE47}在项目的.csproj添加为第一个GUID来。您可能不需要更新您的Visual Studio。

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.

请参照<一个href=\"http://stackoverflow.com/questions/10540198/context-menu-to-add-controller-view-missing\">Context菜单中添加控制器/视图中缺少

这篇关于无添加控制器菜单上,不能在MVC 4.5添加视图或者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆