Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet restore exits with code 0 errorlevel when packages not found #1186

Closed
zarenner opened this issue Aug 14, 2015 · 2 comments
Closed

NuGet restore exits with code 0 errorlevel when packages not found #1186

zarenner opened this issue Aug 14, 2015 · 2 comments

Comments

@zarenner
Copy link

Failing to restore a package incorrectly returns 0:
C:\Users\zarenner>nuget restore -PackagesDirectory %temp%
Restoring NuGet package SomePackageThatDoesntExist.100.0.0.
WARNING: Unable to find version '100.0.0' of package 'SomePackageThatDoesntExist'.
Unable to find version '100.0.0' of package 'SomePackageThatDoesntExist'.

C:\Users\zarenner>echo %errorlevel%
0

Other failures correctly return 1:
C:\Users\zarenner>nuget restore sdfdsf
Could not find a part of the path 'C:\Users\zarenner\sdfdsf'.

C:\Users\zarenner>echo %errorlevel%
1

@yishaigalatzer
Copy link

@zarenner what version of nuget.exe are you reporting this?

@zarenner
Copy link
Author

@yishaigalatzer Repros in latest dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants