Visual studio 2017 / 2019 add areas missing

佐手、 提交于 2021-02-18 05:01:05

问题


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


回答1:


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

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

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

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

Hope it will helps.




回答2:


I had a same problem and found that,Visual studio 2017 doesn't support Area




回答3:


I had missing Area on context menu. However, after building the project (2x) the Area was again visible on context menu.




回答4:


In my "Visual Studio 2019" I found via right click on project Add -> New Scaffolded Item -> Common -> MVC -> Area is available.



来源:https://stackoverflow.com/questions/43341935/visual-studio-2017-2019-add-areas-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!