【发布时间】:2017-12-06 16:09:58
【问题描述】:
我有这个问题。我想下载“Install-Package Microsoft.ProjectOxford.Face -Version 1.3.0”,但我遇到了这个错误。我搜索了,但我找不到。
Install-Package : Could not install package 'Microsoft.ProjectOxford.Common 1.0.324'. You are trying to install this package into a p
roject 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 Microsoft.ProjectOxford.Face -Version 1.3.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
【问题讨论】:
-
` 依赖项:.NETStandard,Version=v1.1`
-
该消息准确地显示了问题所在。您有一个针对
.net framework 4.0的应用程序,但该库需要 .net 4.5。所以将你的项目升级到 4.5
标签: c# visual-studio nuget nuget-package