Visual Studio 2017/2019添加缺少的区域 [英] Visual studio 2017 / 2019 add areas missing

查看:114
本文介绍了Visual Studio 2017/2019添加缺少的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS2017/2019创建ASP.NET MVC Core Web应用程序时,发现上下文"菜单中缺少添加区域"选项.

While creating a ASP.NET MVC Core Web app using VS2017 / 2019, came across that 'Add Areas' option is missing from Context menu.

推荐答案

区域未从VS 2017/19中删除,但已在脚手架中移动,您可以使用以下步骤访问该区域:

Area is not removed from VS 2017/19 but it is moved in Scaffolding and you can access the area using below steps:

1)右键单击您的项目,然后单击添加>新脚手架项目

1) Right click on your project and click on Add>New Scaffolded Item

2)单击之后,从菜单中选择MVC区域:

2) After click choose the MVC area from the Menu:

3)选择命名后,该区域将添加到您的项目中:

3) After choosing give it Name, and after this the Area will be added to your project:

希望这会有所帮助.

这篇关于Visual Studio 2017/2019添加缺少的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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