开发者

MVC 2 Areas not showing up in VS2008 context menu

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 开发者_JS百科Areas. I have MVC 2 installed so I'm not sure what's not setup right.


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜