首页 > 解决方案 > 无法通过 nuget 安装 Boost 1.59.0

问题描述

我正在尝试安装 Caffe.clr,它需要 boost 1.59.0 作为依赖项。这是安装失败:

Attempting to gather dependency information for package 'boost.1.59.0' with respect to project 'Project', targeting '.NETFramework,Version=v3.5,Profile=Unity Full v3.5'
Gathering dependency information took 2.08 ms
Attempting to resolve dependencies for package 'boost.1.59.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'boost.1.59.0'
Resolved actions to install package 'boost.1.59.0'
Retrieving package 'boost 1.59.0' from 'nuget.org'.
Install failed. Rolling back...
Package 'boost.1.59.0' does not exist in project 'ParticleFilter2'
Package 'boost.1.59.0' does not exist in folder 'c:\Project'
Executing nuget actions took 2.96 sec
Install-Package : Could not install package 'boost 1.59.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5,Profile=Unity Full v3.5', 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 boost -Version 1.59.0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

我尝试了很多目标,包括 .Net 3.5 vanilla、.Net 4.6 和 .Net 4.7.1,都给出了大致相同的错误。为什么会这样?如何安装 boost/caffe?

标签: c#boostnugetcaffe

解决方案


我认为您不能将本机软件包安装到NETFramework,Version=v3.5,Profile=Unity Full v3.5


推荐阅读