![](/img/trans.png)
[英]The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) Kentico
[英]The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
每当我尝试编译我的 VS2015 应用程序时,都会出现一长串错误,例如:
The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
但是,只要我双击错误以查看文件,它就会打开文件,稍有延迟,然后清除所有错误。
如果我继续尝试再次构建,我会得到相同的错误列表,并且该过程会重复。
更新我忘了提到我已经尝试过:
什么会导致这种情况? 我该如何消除它?
在我的情况下,它仅在我在包管理器控制台中运行以下命令后才起作用
PM> Install-Package Microsoft.AspNet.Mvc
我的环境是:
1) Visual Studio 2017
2) Freshly created Angular 4 app
3) MVC 6 as a back end
尝试下载并将 System.Web.Mvc.dll 复制到您的项目 bin 文件夹中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.