上下文菜单不包含Scaffolding VS2015 ASP.NET 5(Context menu doesn't contain Scaffolding VS2015 ASP.NET 5)

编程入门 行业动态 更新时间:2024-10-17 07:34:59
上下文菜单不包含Scaffolding VS2015 ASP.NET 5(Context menu doesn't contain Scaffolding VS2015 ASP.NET 5)

我正在阅读有关ASP.NET 5文档网站的教程。

正如您在此处所见,教练右键单击Controller文件夹,他/她获得一个上下文菜单,在Add子菜单下有一个New Scaffolded Item...选项。

但正如你在下面看到的那样,当我右键单击我的Controller文件夹时,没有New Scaffolded Item...选项可用!

New Scaffolded Item...不可用

当我右键单击一个动作时,我也没有Add view...选项!

我正在使用Visual Studio 2015 Updade 1 CTP。

I'm going through a tutorial on ASP.NET 5 documentation website.

As you can see here the trainer right clicks on the Controller folder and he/she gets a context menu that under the Add sub menu there's a New Scaffolded Item... option.

But as you can see below there's no New Scaffolded Item... option available for me when I right click on my Controller folder!

New Scaffolded Item... is not available

I also don't have Add view... option when I right click inside an action!

I'm using Visual Studio 2015 Updade 1 CTP.

最满意答案

Asp.Net 5的目标是削减尽可能多的功能,并留下从.Net Core开始的“绝对必要”。

脚手架等生产力功能似乎不属于“必要”保护伞,需要作为依赖项添加到项目中。

此链接可能有所帮助: 脚手架MSDN博客文章 。

需要注意的是:有许多类已经从版本'1.0.0-beta8重命名为1.0.0-rc1-final。 我相信CodeGenerator就是其中之一。 “框架”在命名空间层次结构中更改为“扩展”。

希望有帮助......

The goal of Asp.Net 5 was to trim away as much functionality as possible and leave only what was 'absolutely essential' starting with .Net Core.

Productivity features like scaffolding don't seem to fall under that 'essential' umbrella and will need to be added as dependencies to your project.

This link might help: Scaffolding MSDN Blog Article.

One caveat: There are many classes that have been renamed from version '1.0.0-beta8 to 1.0.0-rc1-final. And I believe the CodeGenerator is one of them. 'Framework' changed to 'Extensions' within the namespace hierarchy.

Hope that helps...

更多推荐

Add,Controller,Scaffolded,Item,电脑培训,计算机培训,IT培训"/> <meta name=&quo

本文发布于:2023-08-04 11:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1416028.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:上下文   不包含   菜单   Scaffolding   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!