视觉工作室2013“添加控制器”缺失 [英] visual studio 2013 'add controller' missing

查看:184
本文介绍了视觉工作室2013“添加控制器”缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新的Visual Studio 2010项目到Visual Studio 2013。
然后我想广告一个新的控制器。
但没有添加控制器选项。

但是,如果我在2013年创建一个新项目就已经有添加控制器选项。
 那么如何添加新的控制器?缺少的东西在web.config中或丢失的参考?


解决方案

请确保您的.proj文件包括所有适当的项目类型的GUID。

<$p$p><$c$c><ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

第一个GUID,可以在上下文菜单的所有标准的MVC操作。

I update the visual studio 2010 project to visual studio 2013. Then I want to ad a new controller. but there is no add Controller option.

But If I create a new project in 2013 it already have the add Controller option. So how to add the new Controller? something missing in web.config or missing reference?

解决方案

Make sure your .proj file includes all the appropriate project type Guids.

<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

The first GUID allows all standard MVC operations in the context menus.

这篇关于视觉工作室2013“添加控制器”缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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