升级到 3.0.1 后 Nuget Assembly 参考 Microsoft Owin [英] Nuget Assembly reference Microsoft Owin after upgrade to 3.0.1

查看:21
本文介绍了升级到 3.0.1 后 Nuget Assembly 参考 Microsoft Owin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在包管理器中,它指出版本为 3.01,但是当我在 Visual Studio 2013 中构建项目时,会给出此消息.我到处找,除了在 web.config 中找不到对 Microsoft Owin 3.0 的引用.在packages.config 文件中是3.0.1.在 web.config 中,所有 Owin 文件仍然显示为 3.0.0.请让我知道除了从项目中删除 Owin 之外我还能做些什么.

In the package manager it states the version is 3.01, But when I build the project in Visual Studio 2013, is gives this message. I have looked everywhere and can't find a reference to Microsoft Owin 3.0 except in web.config. It is 3.0.1 in the packages.config file. In the web.config all the Owin files still say 3.0.0. Please let me know if there is anything I can do beside remove Owin from the project.

错误 6 程序集 'Microsoft.Owin.Host.SystemWeb,版本 = 3.0.1.0,文化=中性,PublicKeyToken=31bf3856ad364e35' 使用'Microsoft.Owin,版本=3.0.1.0,文化=中性,PublicKeyToken=31bf3856ad364e35' 版本高于引用的程序集 'Microsoft.Owin,版本 = 3.0.0.0,文化 = 中性,PublicKeyToken=31bf3856ad364e35'

Error 6 Assembly 'Microsoft.Owin.Host.SystemWeb, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'Microsoft.Owin, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

推荐答案

就我而言,我注意到 Microsoft.Owin.Security.Cookies.4.0.1 指向 Newtonsoft.Json.12.0.2 和我的 Newtonsoft.Json nuget软件包是 Newtonsoft.Json.12.0.3.经过多次修改绑定重定向或任何其他解决方案"的意图后,我决定将我的 Newtonsoft nuget 包降级到 12.0.2,与 Microsoft.Owin.Security.Cookies.4.0.1 使用的另一个包相同.现在警告消失了.

In my case I notice that Microsoft.Owin.Security.Cookies.4.0.1 was pointing to Newtonsoft.Json.12.0.2 and my Newtonsoft.Json nuget package was Newtonsoft.Json.12.0.3. After many intents modifying binding redirects or any other "solution" I decided to downgrade my Newtonsoft nuget package to 12.0.2, the same that the other package Microsoft.Owin.Security.Cookies.4.0.1 was using. Now the warning is gone.

这篇关于升级到 3.0.1 后 Nuget Assembly 参考 Microsoft Owin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆