简体   繁体   中英

Add Area Option for Mvc application missing in VS2015

I have an vs 2015, i am working on mvc application but when i tried to add area i cann't see add area option any where in those option, but i could able to add those in 2012 version. And also in case of adding controller to the project i can't add normal MVc controller to my project it's giving only option for adding Web api controller and and its types, how should i make this work ? sholud i install some scaffolder templates or what ? can i get the solution for this issue ?? , thanks in advance.

For VS 2019

  1. Press right click on ur project

2. Add

3. New Scaffolded Item...

4. MVC 5 Area

Yes, I found the problem that it's my project issue. adn becuase it was a mvc4 project and i am trying to run in vs 2015, it couldn't able to recongnize as right version.

and Updating my project mvc version solved the problem

Ref 1. https://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253806

Ref 2. http://www.codingdefined.com/2015/04/how-to-fix-systemmethodaccessexception.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM