Reputation: 59
I have a solution which has a two projects. In the both the projects I have packages.config file which has the list of packages that the project uses. Whenever I build the solution I'm getting the below error
The command "*\Tools\nuget install \packages.config -o \Packages" exited with code 3.**
(replaced folder path with **)
I have installed all the packages manually using package manager console. The installation is successful. When I build the solution now i'm getting the below error
The command "*\Tools\nuget install \packages.config -o \Packages" exited with code 1.**
I have cleared the cache of packages. Still I get this error. Not sure why the solution build is trying to install the packages.
Upvotes: 1
Views: 3552
Reputation: 108975
This was happening in a new CI build I set up yesterday. The problem was that NuGet.exe
wasn't at the specified path.
"exited with code 3." wasn't an error from NuGet.exe
but from MSBuild.
Upvotes: 1
Reputation: 1440
If you were using TFS, be sure to include the location of the Nuget package in the Source Settings
of build definition. This error can indicate it cannot access the files.
Upvotes: 0
Reputation: 592
You can try adding -verbosity detailed
to your command *\Tools\nuget install \packages.config -o \Packages
to get detailed error message to help you investigate the cause.
Upvotes: 1