我正在尝试从这里开始在我的owin.security mvc 4应用程序上安装asp.net,但是有一个错误:
Install-Package : Could not install package 'Microsoft.Owin.Security 2.0.2'. 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.
At line:1 char:1
+ Install-Package Owin.Security.Providers
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException我试图在谷歌上搜索,但只找到了有关SignalR的信息。有人能帮我吗?
发布于 2014-04-23 12:52:55
我很惊讶。我为Microsoft搜索了系统需求。我也很难找到一个明确的答案。
所以当有疑问的时候,去找消息来源:
根据项目档案:
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>这就是为什么NuGet不允许您安装软件包的原因。您需要将项目更新为.NET 4.5Framework。
发布于 2016-07-06 09:24:28
对于我正在进行的一个现有项目,我也遇到了同样的问题,尝试一下
Install-Package Microsoft.Owin.Host.SystemWeb -Version 2.1.0
最好安装一个稍早的Owin版本,因为.NET framework 4.0不支持较新的版本。但是你会得到几乎所有的特征。
发布于 2014-04-23 09:22:02
SignalR 2.0不支持.net 4.0。要么升级.net,要么使用1.x版本的SignalR。
>Install-Package Microsoft.AspNet.SignalR -Version 1.1.3https://stackoverflow.com/questions/23239813
复制相似问题