I have a VS solution and as part of a TeamCity Build, we restore packages from both a private NuGet feed (myget) and the public feed (nuget.org). Most packages restore fine, but it hangs on the ones below for WebApi and Mono.Security. This is all working locally in Visual Studio.
[restore] NuGet command: C:TeamCityuildAgentplugins
uget-agentinJetBrains.TeamCity.NuGetRunner.exe C:TeamCityuildAgentoolsNuGet.CommandLine.DEFAULT.nupkgoolsNuGet.exe restore C:TeamCityuildAgentwork953bd084b49f7d88DataFinch.Web.sln -Source https://www.myget.org/F/datafinch/auth/<hidden>/api/v2 -Source https://api.nuget.org/v3/index.json
[11:41:35][restore] Starting: C:TeamCityuildAgentempagentTmpcustom_script473789219385667038.cmd
[11:41:35][restore] in directory: C:TeamCityuildAgentwork953bd084b49f7d88
[11:41:35][restore] JetBrains TeamCity NuGet Runner 8.0.37059.9
[11:41:35][restore] Registered additional extensions from paths: C:TeamCityuildAgentplugins
uget-agentinplugins-2.8
[11:41:35][restore] Starting NuGet.exe 2.8.50926.602 from C:TeamCityuildAgentoolsNuGet.CommandLine.DEFAULT.nupkgoolsNuGet.exe
[11:41:43][restore] Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
[11:41:43][restore] Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Core'.
[11:41:43][restore] Unable to find version '3.2.3.0' of package 'Mono.Security'.
[11:41:43][restore] Unable to find version '6.0.4' of package 'Newtonsoft.Json'.
[11:41:43][restore] Process exited with code 1
Teamcity config:
question from:
https://stackoverflow.com/questions/32360518/nuget-restore-via-build-server-unable-to-find-version 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…