gpt4 book ai didi

c# - 无法获取 nuget 包 zlib.portable

转载 作者:太空狗 更新时间:2023-10-29 23:32:00 34 4
gpt4 key购买 nike

我尝试按照此处的说明进行操作:

https://code.google.com/p/google-api-dotnet-client/wiki/Build

但是当我尝试按照“使用 NuGet”下的说明进行操作时,我失败了!

我得到以下响应:

Attempting to resolve dependency 'Newtonsoft.Json (≥ 5.0.5)'.
Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.0.19)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
Attempting to resolve dependency 'Microsoft.Bcl.Async (≥ 1.0.16)'.
Attempting to resolve dependency 'Microsoft.Net.Http (≥ 2.1.10)'.
Attempting to resolve dependency 'Zlib.Portable (≥ 1.9.2)'.
Attempting to resolve dependency 'log4net (≥ 2.0.0)'.
Successfully installed 'Newtonsoft.Json 5.0.6'.
Successfully installed 'Microsoft.Bcl.Build 1.0.7'.
Successfully installed 'Microsoft.Bcl 1.0.19'.
Successfully installed 'Microsoft.Bcl.Async 1.0.16'.
Successfully installed 'Microsoft.Net.Http 2.1.10'.
Successfully installed 'Zlib.Portable 1.9.2'.
Successfully installed 'log4net 2.0.0'.
Successfully installed 'Google.Apis 1.4.0-beta'.
Successfully added 'Newtonsoft.Json 5.0.6' to JoBeGAPPSAdm.
Successfully added 'Microsoft.Bcl.Build 1.0.7' to JoBeGAPPSAdm.
Executing script file 'C:\Users\Swejope\documents\visual studio 2012\Projects\JoBeGAPPSAdm\packages\Microsoft.Bcl.Build.1.0.7\tools\Install.ps1'.
Successfully added 'Microsoft.Bcl 1.0.19' to JoBeGAPPSAdm.
Successfully added 'Microsoft.Bcl.Async 1.0.16' to JoBeGAPPSAdm.
Successfully added 'Microsoft.Net.Http 2.1.10' to JoBeGAPPSAdm.
Executing script file 'C:\Users\Swejope\documents\visual studio 2012\Projects\JoBeGAPPSAdm\packages\Microsoft.Bcl.Build.1.0.7\tools\Uninstall.ps1'.
Successfully uninstalled 'Zlib.Portable 1.9.2'.
Successfully uninstalled 'Microsoft.Net.Http 2.1.10'.
Successfully uninstalled 'Microsoft.Bcl.Async 1.0.16'.
Successfully uninstalled 'Microsoft.Bcl 1.0.19'.
Access to the path 'C:\Users\Swejope\documents\visual studio 2012\Projects\JoBeGAPPSAdm\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.Tasks.dll' is denied.
Katalogen är inte tom.

Successfully uninstalled 'Microsoft.Bcl.Build 1.0.7'.
Successfully uninstalled 'Newtonsoft.Json 5.0.6'.
Install failed. Rolling back...
Access to the path 'C:\Users\Swejope\documents\visual studi 2012\Projects\JoBeGAPPSAdm\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.Tasks.dll' is denied.
Katalogen är inte tom.

Could not install package 'Zlib.Portable 1.9.2'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.

我已经在 .NETFramework 4.5 上尝试过,但响应相同。

编辑:我已经解决了这个问题!

在 Visual Studio Express 2012 中更新 NuGet 解决了这个问题。

最佳答案

从您提到的输出来看,您实际上遇到了不同的问题:

访问路径'C:\Users\Swejope\documents\visual studio 2012\Projects\JoBeGAPPSAdm\packages\Microsoft.Bcl.Build.1.0.7\tools\Microsoft.Bcl.Build.Tasks.dll'是拒绝。

先检查这个,解决它(也许以管理员身份运行 VS?),然后重试。

关于c# - 无法获取 nuget 包 zlib.portable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17784432/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com