I have an ASP.NET WebForms application that I’m adding some ASP.NET MVC to.
I have it working, but how can I get Visual Studio to recognise that it’s now an MVC project and give me the context menu options to add a view, etc. inside a controller action method?
Open the
.csprojfile with your favorite text editor (not Visual Studio) and add the following GUID:Notice the
{F85E285D-A4E0-4152-9332-AB1D724D3325}GUID. This is what indicates that it is an ASP.NET MVC project.Once this GUID added to the
ProjectTypeGuidsnode you will get the context menus.