views:

24

answers:

1

I have converted my ASP.NET web forms project into an MVC project by adding the MVC ProjectType guid in the project file. All of my MVC 2 project items are showing up (View, Controller etc.) but for Areas. I have MVC 2 installed so I'm not sure what's not setup right.

A: 

Turns out that an MVC 2 project has a different GUID which makes sense since they are supposed to work side-by-side. I ended up using {F85E285D-A4E0-4152-9332-AB1D724D3325} .

P.S: You have to add this at the start of the element like this:

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

It wouldn't load when I added it at the end (as described in Sanderson's book).

Praveen