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

前端 未结 2 1308
死守一世寂寞
死守一世寂寞 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:11

    If you can create a new ASP.NET MVC 3 project and add a Razor view as expected then the project where you are seeing this behavior is missing the ASP.NET MVC 3 project type guid, which you can find in a new ASP.NET MVC 3 project's .csproj file. If you can't do this than you should try reinstalling the ASP.NET MVC 3 Tools Update.

提交回复
热议问题