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:

希望这会有所帮助.