Philip Hendry's Blog

Manually converting a Visual studio project to include mvc Context menus

Aug 9, 2010 • ASP.NET MVC, Visual Studio • Less than a minute read

I’ve got a Visual Studio project that includes ASP.NET MVC controllers, models and view utilities but because it was not a Web Application I wasn’t getting any of the context menus for adding MVC elements. For example, ‘Controller’ was missing from the Add menu :


To fix this I unloaded the project, edited the csproj and added the following line :


Using a list of known project type guids I could identify the second guid which is Windows (C#) whilst the first I found by googling and checking a test ASP.NET MVC application I created with Visual Studio.

Post by: Philip Hendry