我最近安装了VS.NET 2012,并将我的ASP.NET MVC 4项目移植过来。然而,在构建解决方案时,我遇到了数百个错误:
The type or namespace 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference)
据我所知,ASP.NET MVC 4已经集成在VS 2012中,无需安装其他内容。有什么好的想法可以消除这些错误并构建应用程序吗?
我最近安装了VS.NET 2012,并将我的ASP.NET MVC 4项目移植过来。然而,在构建解决方案时,我遇到了数百个错误:
The type or namespace 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference)
您需要在您的项目中包含对程序集System.Web.Mvc
的引用。