问题描述
我已经开始了一个新的基本剃刀网站,作为一种'清白'的进行更新。
I have started a new basic Razor website, as a sort of 'clean slate' for the update.
我也跟着每个人都建议,它已经没有问题完成。本教程
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 , there is no Controller option. There is also no Controller option in > or >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.
推荐答案
安装下列项目:
- Web工具2013.1为Visual Studio 2012( | Direct下载)
- Visual Studio 2012 Update 4
- Web Tools 2013.1 for Visual Studio 2012 (Web Platform Installer | Direct Download)
然后按照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您正在寻找的选项可能会在添加脚手架骨节病>菜单选项下被隐藏。请参见发行博客post对MVC5脚手架的更多信息。
In MVC5 the option you're looking for might be hidden under the menu option. See the release blog post for more information on MVC5 scaffolding.
这篇关于添加升级MVC4到MVC5后取出控制器选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!