加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-mvc-4 – 在VS2012中运行代码分析时出错

发布时间:2020-12-16 04:16:35 所属栏目:asp.Net 来源:网络整理
导读:我尝试编译MVC4 Web项目时收到以下两个错误: CA0058 Error Running Code Analysis CA0058 : The referenced assembly ‘DotNetOpenAuth.AspNet,Version=4.0.0.0,Culture=neutral,PublicKeyToken=2780ccd10d57b246’ could not be found. This assembly is r
我尝试编译MVC4 Web项目时收到以下两个错误:

CA0058 Error Running Code Analysis CA0058 : The referenced assembly ‘DotNetOpenAuth.AspNet,Version=4.0.0.0,Culture=neutral,PublicKeyToken=2780ccd10d57b246’ could not be found. This assembly is required for analysis and was referenced by: C:UsersbflynnVisual Studio Sitesmnpbinmnp.dll,C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv2.0AssembliesMicrosoft.Web.WebPages.OAuth.dll. [Errors and Warnings] (Global)

CA0001 Error Running Code Analysis CA0001 : The following error was encountered while reading module ‘Microsoft.Web.WebPages.OAuth’: Assembly reference cannot be resolved: DotNetOpenAuth.AspNet,PublicKeyToken=2780ccd10d57b246. [Errors and Warnings] (Global)

我最近将DotNetOpenAuth.AspNet软件包添加到应用程序中,它似乎与此相关.我已经清理,重建,打开/关闭程序,卸载/重新安装包,但错误仍然存??在.

解决方法

我也碰到了这个.

不要将DOA升级到4.1

看起来aspnet dll引用了特定版本.尽管它的.nuspec文件说4.0可以……

解:

Uninstall-Package -Force每个DotNetOpenAuth包(core / aspnet / oauth / openid等)

安装包DotNetOpenAuth.AspNet -Version 4.0.4.12182

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读