c# - 无法通过 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?
解决方案
我认为您不能将本机软件包安装到NETFramework,Version=v3.5,Profile=Unity Full v3.5
推荐阅读
- python - 在 Qt Python 中的每个按钮上加载不同的文件
- casting - 如何正确地将类型数字转换为字符串
- gulp - Gulp Imagemin 插件 - EROFS:read-olny 文件系统,mkdir '/dist'
- javascript - 本地存储不会在刷新时将值存储在输入字段中
- c# - 在 C# 中将数据添加到现有 Excel 文件
- apache-kafka - 卡夫卡无法生产/消费消息
- python - Python 请求适用于 PowerShell,但不适用于 WSL
- currency - 获取货币字段符号引用的货币符号
- typescript - Typescript,如何提取其他函数返回类型并使用它而不在代码上调用该函数?
- python - 如何使用 python 将对象发布到 sonicwall api?