【发布时间】:2021-03-11 05:25:34
【问题描述】:
我最近安装了 Visual Studio 2013。从网上下载了一个示例项目后,当我运行它时,它给了我以下错误-
The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
如何克服这个错误?
【问题讨论】:
-
使用 Nuget 将 MVC 库添加到您的项目中。
-
@Andrei,你的建议很有效。让它成为一个答案,以便我可以接受它。
-
我刚刚重新启动了 Visual Studio,错误就消失了。
标签: asp.net-mvc visual-studio-2013