I can not add driver in MVC ASP.NET project [closed]

1

I have created an MVC project with Entity Framework on a team with Visual Studio 2015 (with the appropriate updates).

I was able to add a controller linked to one of my entities, to test it. Once verified its proper functioning, I wanted to continue this project on a netbook that has Visual Studio Enterprise 2017 RC.

I would like to add (obviously) the rest of the controllers for the rest of the entities, and by right clicking on the "Controllers" folder looking for "Add-> Controller", the latter option does NOT appear.

What could be happening ...?

    
asked by José Luis Isla 27.02.2017 в 14:07
source

2 answers

0

Strange that it does not appear, but you can create a class in your /Controllers/ folder that inherits from Controller and follow the convention to name your driver example: public class MoviesController : Controller { // code here } in the same way for your views you order it in the% folder /Views/Movies/Index.cshtml

    
answered by 27.02.2017 в 17:33
0

The same thing happened to me, I had open in Visual Studio the project folder but not the solution, just go to where your project is and run the solution, it is the file with .sln extension.

    
answered by 03.12.2017 в 08:37