Nuget restore task fails while restoring from VSTS
See original GitHub issueNuget restore task is failing when attempting to restore packages in VSTS build. Local restore in visual studio works fine. See log below.
Same as issue: #2173
2016-10-03T12:18:38.9198911Z ##[section]Starting: NuGet restore Platform.sln 2016-10-03T12:18:39.6564698Z [command]C:\Windows\system32\chcp.com 65001 2016-10-03T12:18:39.7014701Z Active code page: 65001 2016-10-03T12:18:39.7414706Z Detected NuGet version 3.3.0.212 / 3.3.0 2016-10-03T12:18:39.7484706Z SYSTEMVSSCONNECTION exists true 2016-10-03T12:18:39.7764701Z save nuget.config to temp config file 2016-10-03T12:18:39.7764701Z Preparing to set credentials in NuGet.config 2016-10-03T12:18:39.7774696Z [command]C:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.17\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe sources Remove -NonInteractive -Name tos-nuget -ConfigFile C:\a\1\Nuget\tempNuGet_882.config 2016-10-03T12:18:40.8763939Z Package source with Name: xxx removed successfully. 2016-10-03T12:18:40.8763939Z Setting credentials in NuGet.config 2016-10-03T12:18:40.8813957Z [command]C:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.17\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe sources Add -NonInteractive -Name xxx -Source https://xxx.pkgs.visualstudio.com/DefaultCollection/_packaging/xxx/nuget/v3/index.json -Username VssSessionToken -Password ******** -ConfigFile C:\a\1\Nuget\tempNuGet_882.config 2016-10-03T12:18:41.5683947Z Package Source with Name: xxx added successfully. 2016-10-03T12:18:41.5775228Z [command]C:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.17\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe restore -NonInteractive C:\a\1\s\Platform.sln -ConfigFile C:\a\1\Nuget\tempNuGet_882.config 2016-10-03T12:18:42.3940437Z MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'. 2016-10-03T12:18:42.5453306Z Error parsing solution file at C:\a\1\s\Platform.sln: Exception has been thrown by the target of an invocation. 2016-10-03T12:18:42.5783371Z ##[error]Error: C:\a\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.17\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe failed with return code: 1 2016-10-03T12:18:42.5783371Z ##[error]Packages failed to install 2016-10-03T12:18:42.5833372Z ##[section]Finishing: NuGet restore Platform.sln
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
Top GitHub Comments
Solved it. It was an error in my solution file. After I disabled the nuget restore task and check “restore nuget” on the build solution task I got an error message that explained what was going on.
Platform.sln(1008,0): Error MSB5023: Error parsing the nested project section in solution file. A project with the GUID "{8F2B4ACA-F351-4ED0-866B-0BB56EA083A4}" is listed as being nested under project "{2AB87963-D7EA-431D-B3C5-14AEED135243}", but does not exist in the solution.
It would be nice if the nuget task would return better exception messages…
I am having a similar issue but I don’t see anything mentioned on their blog about thier service being down. Here is my exact error message: