Adding asp.net mvc to webforms application - how do I get MVC menu options in VS2010?

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?

Answers


Open the .csproj file with your favorite text editor (not Visual Studio) and add the following GUID:

<ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{fae04ec0-301f-11d3-bf4b-00c04f79efbc};{349c5851-65df-11da-9384-00065b846f21}</ProjectTypeGuids>

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 ProjectTypeGuids node you will get the context menus.


Need Your Help

Run MsiExec from PowerShell and get Return Code

powershell return-value exit-code msiexec

With BAT/CMD script I can simply use "msiexec /i &lt;whatever.msi&gt; /quiet /norestart" and then check %errorlevel% for the result.

How to create a list of word pairs

python list word

I want to create a list of word pairs, separated by tabs, from a word list. I think one option could be to create a matrix with "range" because i want to have all words combined with each other. I ...