简体   繁体   English

无法在Visual Studio项目中安装nuget软件包zlib

[英]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.

相关问题 Visual Studio Nuget无法安装任何软件包 - Visual Studio Nuget unable to install any package 创建已包含 Nuget Package 参考的 Visual Studio 项目模板? - Creating a Visual Studio Project Template that already includes a Nuget Package Reference? 使用 nuget package 代替项目参考 Visual Studio - Use nuget package instead of project reference Visual studio 无法在Visual Studio 2015 Web API项目中添加nuget程序包 - Can not add a nuget package in visual studio 2015 web api project NuGet 包管理器 - 未找到项目“默认”。 - 视觉工作室 2017 - NuGet Package Manager - Project 'Default' is not found. - Visual Studio 2017 无法将NuGet软件包安装到项目中 - cannot install NuGet package into project Visual Studio - 将 Nuget package 添加到 MacOs 中的项目时,拒绝访问路径“/Users/.local/share/NuGet” - Visual Studio - Access to the path '/Users/.local/share/NuGet' is denied when adding Nuget package to the project in MacOs 在Visual Studio 2012中通过Nuget安装Signr时失败:指定的参数超出有效值范围 - Fail when install Signr via Nuget in Visual Studio 2012: Specified argument was out of the range of valid values 有没有办法像 Visual Studio 那样“安装”nuget package,但是在部署服务器上 - Is there a way to "install" nuget package like the way Visual Studio does, but on a deployment server 使用nuget程序包自动配置VSIX的Visual Studio - configure visual studio with nuget package, VSIX automatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM