Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在使用 VS2017 / 2019 创建 ASP.NET MVC Core Web 应用程序时,发现上下文菜单中缺少“添加区域”选项。
区域并未从 VS 2017/19 中移除,但已在 Scaffolding 中移动,您可以使用以下步骤访问该区域:
1)右键单击您的项目,然后单击添加>新建脚手架项目
2)点击后从菜单中选择MVC区域:
3)选择给它命名后,区域将被添加到您的项目中:
希望它会有所帮助。
在我的“Visual Studio 2019”中,我通过右键单击项目 Add -> New Scaffolded Item -> Common -> MVC -> Area 发现可用。
我遇到了同样的问题,发现Visual Studio 2017不支持Area
我在上下文菜单上缺少区域。但是,在构建项目 (2x) 之后,该区域再次在上下文菜单中可见。