我最近安装了 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 中,无需安装任何内容。有什么想法可以消除这些错误并构建应用程序吗?
最佳答案
您需要在项目中包含对程序集 System.Web.Mvc
的引用。
关于asp.net - 命名空间 'Mvc' 中不存在类型或命名空间 'System.Web',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12319672/