ASP MVC 5项目“新建项目脚手架......”从上下文菜单中丢失 [英] ASP MVC 5 project 'New Scaffolded Item...' is missing from the context menu

查看:246
本文介绍了ASP MVC 5项目“新建项目脚手架......”从上下文菜单中丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是不是重复。见我的意见,也看到我更多的诊断。结果

This is not a duplicate. See my comments, and also see my additional diag. results

修改
现在它变得更加怪异。第二天早上,我已经打开了我的VS和这个项目,脚手架菜单项都在那里。用它们来几次,然后就消失了。我觉得我做了一件该项目使源代码控制撤消所有:没有帮助。 VS关闭/打开:没有帮助。机重新启动:没有帮助。创建一个全新的ASP MVC 5项目,该项目还没有任何MVC像客户服务联系菜单,既不控制器或浏览右击:没有帮助。这是可怕的。但是,除了吓人的我在我的工作我几乎无效:-(不要任何人有任何想法是怎么回事?
修改

edit Now it is became more weird. Next morning I've opened my VS and this project, and Scaffolding menu items were there. Used them for a few times, then it disappeared. I thought I did something in the project so source control undo all: Not helped. VS close/open: Not helped. Machine restart: Not helped. Creating a brand new ASP MVC 5 project, that project also do not have any MVC like contect menu, neither right clicking on Controllers or Views: Not helped. This is scary. But besides of scary I am practically disabled in my work :-( Do anybody have any idea what's going on? edit

使用VS 2013更新3我创建了一个新的ASP MVC项目5。在Solution Explorer中,该Controllers文件夹右键单击新建项目脚手架......从上下文菜单中丢失。顺便说一句添加控制器也不翼而飞。见所附照片。

Using VS 2013 update 3 I've created a new ASP MVC 5 project. Right clicking in the Controllers folder in the Solution Explorer, the 'New Scaffolded Item...' is missing from the context menu. Btw the Add Controller is also missing. See attached pic.

附加诊断结果:

1)如预期转移到另一台机器的作品非常相同的解决方案。该解决方案是通过源头控制转移,所以它是相同的.csproj文件(也可以.csproj.user不同)

1) The very same solution transferred to an other machine works as expected. The solution was transferred via source control, so it is the same .csproj file (well .csproj.user can differ)

2),我们在谈论在我的机器,这显示出这一问题的创建解决方案

2) The solution we talking about was created in my machine, which exhibits the issue

3)如果我重复实验,创造了我的机器上一个新的ASP MVC 5 Web应用程序,上下文菜单中丢失。

3) If I repeat the experiment, creating a new ASP MVC 5 Web app in my machine, the context menu is missing.

我在想什么?
THX提前

What am I missing? Thx in advance

推荐答案

我知道这是一个相当古老的POS机,但我有同样的问题,发现这在我的情况,我想分享工作的解决方案。

I know it's a rather old pos, but I had the same problem and found a solution which worked in my case, which I wanted to share.

我不得不更新的项目我的NuGet包我收到的条目新的脚手架项目。

I had to update my NuGet Packages on the project before I had the entry "new Scaffolded item".

您做到这一点,像这样:右键单击项目 - >管理的NuGet包 - >还有你更新微软ASP.NET网页和微软ASP.NET MVC

You do it like so: Right click on project -> Manage NuGet Packages -> There you update "Microsoft ASP.NET Web Pages" and "Microsoft ASP.NET MVC"

现在我在上下文菜单中的条目

Now I had the entry in the context menu

问候
基督教

这篇关于ASP MVC 5项目“新建项目脚手架......”从上下文菜单中丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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