添加升级MVC4到MVC5后取出控制器选项 [英] Add controller option removed after upgrading MVC4 to MVC5

查看:541
本文介绍了添加升级MVC4到MVC5后取出控制器选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始了一个新的基本剃刀网站,作为一种'清白'的进行更新。

I have started a new basic Razor website, as a sort of 'clean slate' for the update.

我也跟着<一个href=\"http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2\"相对=nofollow>每个人都建议,它已经没有问题完成。本教程

I followed the tutorial that everyone recommends, and it had completed without an issue.

不幸的是,现在,我已经没有选择添加一个控制器。结果
当我右键点击控制器文件夹,并移动到<大骨节病>添加,没有的控制器的选项。也有中没有的控制器的选项<大骨节病>添加> <大骨节病>新项目或<大骨节病>从模板添加>

Unfortunately, now, I have no option to add a controller.
When I right click on the Controllers folder and move to add, there is no Controller option. There is also no Controller option in add>new item or add>from template.

任何人都可以请帮我把这个功能了?我一直在浏览了一段时间,现在的解决方案,而我似乎pretty独一无二的。

Can anyone please help me get this functionality back? I've been browsing for solutions for a while now, and mine seems pretty unique.

推荐答案

安装下列项目:


  1. 的Visual Studio 2012更新4

  2. Web工具2013.1为Visual Studio 2012( Web平台安装 | <一个href=\"http://download.microsoft.com/download/6/A/8/6A894BC6-3C60-42B5-8246-5EF7918FD852/AspNetWebTools2013_1Setup.exe\">Direct下载)

  1. Visual Studio 2012 Update 4
  2. Web Tools 2013.1 for Visual Studio 2012 (Web Platform Installer | Direct Download)

然后按照<一href=\"http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2\">this教程升级您的MVC 4项目MVC 5 。

最后,请确保您的项目有以下ProjectTypeGuids:

Finally make sure your project has the following ProjectTypeGuids:

 <ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

在MVC5您正在寻找的选项可能会在<大骨节病>添加脚手架菜单选项下被隐藏。请参见发行博客<一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\">post对MVC5脚手架的更多信息。

In MVC5 the option you're looking for might be hidden under the Add Scaffold menu option. See the release blog post for more information on MVC5 scaffolding.

这篇关于添加升级MVC4到MVC5后取出控制器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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