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

查看:92
本文介绍了升级到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'


推荐答案

我遇到了同样的问题,以下2条nuget命令解决了我的问题:

I had the same issue and the following 2 nuget commands resolved my issue:

Install-Package Microsoft.Owin.Host.SystemWeb -version 3.0.1

Install-Package Microsoft.AspNet.Identity.Owin -version 3.0.1

使版本号匹配的力量似乎是魔术。

The force on version number to make them match seemed to be the magic.

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

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