I'm upgraded my project to Razor view engine, but VS2010 still auto-generates WebForms

前端 未结 2 1323
死守一世寂寞
死守一世寂寞 2021-01-29 00:36

I have upgraded to MVC3 and Razor, everything works fine. However, in my return View(model); the \"View\" is red and VS2010 will helpfully suggest I generate a view

2条回答
  •  臣服心动
    2021-01-29 01:12

    These are not explicit answer but rather a list of actions that you could try..

    • In the csproj file of your project make sure that the are set to {E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}
    • Try changing the ProjectGuid to some other Guid (last post). You will need to update the sln file or simply recreate the solution.
    • Not sure what method you used to upgrade, but have a look at the MVC 3 Upgrade Tool from CodePlex

提交回复
热议问题