[英]adding view is disabled in VS 2015 MVC 5
I have a working MVC 5 web application.我有一个工作的 MVC 5 Web 应用程序。 everything was ok until suddenlly i found out that i cannot add a view to the application and the add button is disabled.
一切都很好,直到突然我发现我无法向应用程序添加视图并且添加按钮被禁用。
the project type GUIDS tag looks like this项目类型 GUIDS 标记如下所示
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
please help me with this.请帮我解决一下这个。
Thanks all谢谢大家
Your ProjectTypeGuids
look ok.您的
ProjectTypeGuids
看起来不错。 You can view a list of ProjectTypeGuids here .您可以在此处查看 ProjectTypeGuids 列表。
I have Visual Studio 2015 Community Edition
here and it works fine when I try to add a View
clicking on Views folder
and an Action
inside a Controller
.我在这里有
Visual Studio 2015 Community Edition
,当我尝试添加一个点击Views folder
的View
和一个Controller
内的Action
时,它工作正常。
There are some similar questions here at stackoverflow, maybe they can help you: stackoverflow 上有一些类似的问题,也许他们可以帮助你:
Can you give more information about how you are trying da add that View
please?您能否提供更多有关您如何尝试添加该
View
的信息?
I can reproduce clicking on the Views
folder and the add button is disabled if I choose Template: Empty
and don't select any Model Class
:如果我选择
Template: Empty
并且不选择任何Model Class
,我可以重现单击Views
文件夹并禁用添加按钮:
The only way the button Add
will be enabled with no Model Class
selected is if I choose Empty (Without Model)
:如果我选择
Empty (Without Model)
,则在未选择Model Class
的情况下启用按钮Add
的唯一方法是:
确保您已安装以下所有内容:修改 VS -> 工作负载 -> 安装详细信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.