ASP.NET MVC Custom View Path Breaks Visual Studio Shortcuts

I have seen many articles on how to change the default paths for an ASP.NET MVC project so that you can move or rename the Controllers, Models and Views folders by expanding RazorViewEngine and specifying new path formats.

So far, this works fine, but a side effect is that it violated Visual Studio shortcuts for "Go to view" or "Add view ...".

Any ideas on whether these shortcuts can be customized to find out about the new paths I pointed out?

Thanks in advance! - Scott

+4
source share
1 answer

Visual Studio features cannot be extended to support custom paths. However, in the ASP.NET and Web Frameworks 2012.2 update, which will be released soon (you can download the preview right now from here ), the add view function has been updated to be more flexible as to which folders will be included and which will not . Now it supports the Add View function in any folder located anywhere under the Views folder.

As for Go To View, this has not been updated, because, unfortunately, for the VS tool there is no way to find out about the runtime settings made for the viewer - I agree that it would be cool!

(By the way, my source for this information is that I am working on ASP.NET MVC at Microsoft.)

+5
source

All Articles