How to enable the "Add Controller" option in the menu?

0

Recently the option of my Adicionar controller has disappeared from the menu. I'm using Visual Studio 2013, and the project is ASP NET MVC, version 5.1. How to fix this problem?

    
asked by anonymous 13.02.2014 / 18:18

2 answers

1

Create a new MVC 5.1 project. If the option works in this new project, open the new .csproj file in a text editor and look for the <ProjectTypeGuids> tag. It contains the list of template GUIDs associated with the project. One of these GUIDs is that of MVC projects.

Compare to .csproj of your original project and add whatever is missing.

This has happened to me in previous versions of MVC and I've fixed that way.

    
14.02.2014 / 00:10
0

NO visual studio 2012 this option already comes by default as you know. Have you tried using the same VS12 shortcut: CTRL + M, CTRL + C?

    
13.02.2014 / 18:47