Are only ASP.NET MVC templates available?
Yes, but you can cheat. The way Visual Studio shows these shortcuts is to look at the type of project, and if he sees that it is an ASP.NET MVC project, he will make them available. But how does he know that this is an ASP.NET MVC project? After all, ASP.NET MVC is an ASP.NET project.
Open the .csproj file and find the <ProjectTypeGuids> node of your ASP.NET MVC 4 project. You will see something like this:
<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
Now open the .csproj file of your regular ASP.NET project and simply add the GUID {E3E379DF-F4C6-4180-9B81-6769533ABE47} as the first item in the list (if you do not create the project, you donโt even load it). All this. You will now see ASP.NET MVC-specific context menus in your WebForms project.
Darin Dimitrov May 11 '12 at 6:08 a.m. 2012-05-11 06:08
source share