Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Closed Issue: Package source name missing from error message when unable to restore [3029]

$
0
0
When the build process fail because NuGet is not able to restore some packages there is no way to be sure which source it was. Typical message is "Unable to connect to the remote server". The message miss the name of the source (or better the source location). This is a real pain when using more than one package source (we use the nuget official feed and an internal repository).

The datail found in the build log (verbosity normal) doesn't include the source name either. However you can see from the log the two sources we use but there is no way to know wich one caused the problem:

Built $/ProjectName/Src/.nuget/nuget.targets for target(s) _DownloadNuGet.
F:\Builds\1\...\Sources\.nuget
uget.targets (85): Unable to connect to the remote server
F:\Builds\1\...\Sources\.nuget
uget.targets (85): The command ""F:\Builds\1\...\Sources\.nuget
uget.exe" install "F:\Builds\1\...\packages.config" -source "https://nuget.org/api/v2/;\\DevServer\Packages" -RequireConsent -solutionDir "F:\Builds\1\...)\Sources\ "" exited with code 1.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>