我有VSTS版本,第一步是从VSTS Feed安装nuget软件包,但是没有这样做。恢复运行良好,但根据nuget doc install命令提供给定版本范围的最新包。到目前为止,Restore提供了给定的版本,而不是最新版本。
您是否已经遇到过此问题?
更新:我向issue小组报告了此vsts-tasks。
错误讯息:
2016-11-24T13:42:38.8093462Z Feeds used:
2016-11-24T13:42:38.8093462Z https://api.nuget.org/v3/index.json
2016-11-24T13:42:38.8103475Z https://sayusiando.../_packaging/.../nuget/v3/index.json
2016-11-24T13:42:38.8103475Z C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
2016-11-24T13:42:38.8103475Z
2016-11-24T13:42:39.2778332Z Using credentials from config. UserName: VssSessionToken
2016-11-24T13:42:40.1439116Z NuGet.Protocol.Core.Types.NuGetProtocolException: An error occurred while retrieving package metadata for 'C:\a\1\s\src\DigitalLibrary.sln' from source 'DigitalLibraryNuget'. ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
2016-11-24T13:42:40.1439116Z at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2016-11-24T13:42:40.1439116Z at NuGet.Protocol.Core.v3.DependencyInfo.Utils.<LoadResource>d__3.MoveNext()
2016-11-24T13:42:40.1439116Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1439116Z at NuGet.Protocol.Core.v3.DependencyInfo.Utils.<LoadRanges>d__4.MoveNext()
2016-11-24T13:42:40.1439116Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1439116Z at NuGet.Protocol.Core.v3.DependencyInfo.ResolverMetadataClient.<GetDependencies>d__0.MoveNext()
2016-11-24T13:42:40.1439116Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1439116Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1439116Z at NuGet.Protocol.Core.v3.DependencyInfo.ResolverMetadataClient.<GetRegistrationInfo>d__2.MoveNext()
2016-11-24T13:42:40.1439116Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.Protocol.Core.v3.DependencyInfoResourceV3.<ResolvePackages>d__5.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of inner exception stack trace ---
2016-11-24T13:42:40.1449094Z at NuGet.Protocol.Core.v3.DependencyInfoResourceV3.<ResolvePackages>d__5.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.PackageManagement.NuGetPackageManager.<GetLatestVersionCoreAsync>d__65.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.PackageManagement.NuGetPackageManager.<>c__DisplayClass64_1.<<GetLatestVersionAsync>b__0>d.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.PackageManagement.NuGetPackageManager.<GetLatestVersionAsync>d__64.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.PackageManagement.NuGetPackageManager.<GetLatestVersionAsync>d__63.MoveNext()
2016-11-24T13:42:40.1449094Z --- End of stack trace from previous location where exception was thrown ---
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
2016-11-24T13:42:40.1449094Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2016-11-24T13:42:40.1449094Z at NuGet.CommandLine.InstallCommand.<InstallPackage>d__34.MoveNext()
2016-11-24T13:42:40.1699089Z ##[error]Error: C:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.24\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1
2016-11-24T13:42:40.1699089Z ##[error]Packages failed to install