I also had this problem. The problem was in the project file, and it worked for me:
- Create a new MVC project (you can use a basic template)
- Open the newly created project file and copy the <ProjectTypeGuids> Element
- Open the project file that is causing the problem and replace it with <ProjectTypeGuids> Element
- Reload the project and it should work.
source share