Reputation: 105019
Initial sidenote: I'm working on a hybrid WebForms+MVC application that started as a WebForms application hence I've added project GUIDs that converted it to MVC. This means that I'm getting context menus directly on
Controllers
andViews
folder in application root. That works.
I was wondering whether it's possible to convince Visual Studio (and Asp.net MVC tooling) to add Add controller... and Add View... context menu items to other folders not just those default ones that are on the project root?
The reason is that I'm working on an Asp.net WebForms application that is now a hybrid with MVC. And since it already has quite a few folders in root I would rather separate the new MVC part and contain it altogether within mvc
folder, so all MVC related files would be inside that particular folder.
But right clicking on mvc\Controllers
doesn't give me the wizard, nor does the mvc\Views
... Also navigation from controller code to views isn't working...
Is there any way to customize this in Visual Studio? Do Asp.net MVC tools for VS have some sort of configuration file where this can be configured? Or in registry maybe?
Upvotes: 1
Views: 518
Reputation: 410
If you wish to separate the MVC stuff from the rest of the application you might want to put it in a separate Area
.
You'd have the context menu and separation from the existing mess.
Upvotes: 1