无法安装包'Microsoft.Owin.Security 2.0.1“ [英] Could not install package 'Microsoft.Owin.Security 2.0.1'

查看:1520
本文介绍了无法安装包'Microsoft.Owin.Security 2.0.1“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法安装程序包'Microsoft.Owin.Security 2.0.1。您正在尝试这个软件包安装到该目标的.NETFramework,版本= 4.0版,但包不包含任何程序集引用或与该框架兼容的内容文件的项目。欲了解更多信息,请联系包的作者。

Could not install package 'Microsoft.Owin.Security 2.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

我,我应该有什么,现在...?

what i should i have to now...?

在此先感谢..

推荐答案

这意味着他们创造了一个包的NuGet仅包含针对其他架构版本组件,例如框架4.5

This means they created a nuget package that only contains assemblies targeted at other framework versions, for example Framework 4.5

如果您的项目需要留在Framework 4.0中,你可以尝试使用的NuGet包管理器控制台来使用包的previous版本,并发出以下命令:

If your project needs to stay on Framework 4.0 you can try to use a previous version of the package by using the nuget package manager console and issue the following command:

Install-Package Microsoft.Owin.Security -Version X.X.X

在哪里X.X.X是previous版本号。

Where X.X.X is a previous version number.

您可以在这里找到历史版本:

You can find the version history here :

http://www.nuget.org/packages/Microsoft.Owin.Security

或者你也可以使用Visual Studio 2012/2013,并创建目标框架4.5的一个项目,那么你就不会得到这个错误。

Or you can use Visual Studio 2012/2013 and create a project that targets Framework 4.5, then you will not get this error.

这篇关于无法安装包'Microsoft.Owin.Security 2.0.1“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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