[英]fail to install nuget package zlib in a visual studio project
I want to test the "zlib" package on NuGet from CoApp. 我想在CoApp的NuGet上测试“ zlib”软件包。 the version I tested in 1.2.8.1.
我在1.2.8.1中测试的版本。 when I tried to install the package on a test project in Visual Studio 2012, it produces the following error message:
当我尝试在Visual Studio 2012中的测试项目上安装软件包时,它会产生以下错误消息:
install-package : Could not install package 'zlib.redist 1.2.8.1'.
install-package:无法安装软件包“ zlib.redist 1.2.8.1”。 You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework.
您正在尝试将此软件包安装到以'.NETFramework,Version = v3.5'为目标的项目中,但是该软件包不包含任何与该框架兼容的程序集引用或内容文件。 For more information, contact the package author.
有关更多信息,请与软件包作者联系。 At line:1 char:1 + install-package zlib + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
在第1行:char:1 +安装软件包zlib + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo:未指定:(:) [Install-Package],InvalidOperationException + FullyQualifiedErrorId :NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
Has any one encountered the similar issue? 有没有人遇到过类似的问题? I have tried to change my target framework to the most current one 4.5 to no avail.
我试图将目标框架更改为最新的4.5,但无济于事。
It looks like these packages do not target .NET framework. 看来这些程序包不针对.NET框架。 They are meant to be used in C/C++ projects.
它们应在C / C ++项目中使用。 You may want to use zlib.net package .
您可能要使用zlib.net软件包 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.