5

我最近安装了 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)

AFAIK ASP.NET MVC 4 内置于 VS 2012 中,无需安装任何东西。任何想法如何摆脱这些错误并构建应用程序?

4

1 回答 1

3

您需要System.Web.Mvc在项目中包含对程序集的引用。

于 2012-09-07T14:03:20.990 回答