和平愿意,
我有vs2013 Ultimate,我尝试使用该命令使用软件包管理员控制台安装Google.apis.datastore.v1beta2,如下所述
Install-Package Google.Apis.Datastore.v1beta2 -Pre
我得到了这些结果:
Attempting to resolve dependency 'Google.Apis (≥ 1.7.0-beta)'.
Attempting to resolve dependency 'Google.Apis.Core (≥ 1.7.0-beta)'.
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)'.
Install-Package : The remote server returned an error: (404) Not Found.
At line:1 char:1
+ Install-Package Google.Apis.Datastore.v1beta2 -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], WebException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
它似乎是log4net软件包,尽管我分别安装了它!
它不是log4net。看起来像Google.apis.datastore.v1beta2.1.7.0.7在Nuget上不可用:
https://az320820.vo.msecnd.net/packages/google.apis.datastore.v1beta2.1.7.7.0.7.7-beta.nupkg抛出404 404指定的blob不存在,因此在Nuget Site上看起来像是一个问题。您应该将其报告给包装所有者或Nuget团队。