RESOLVED - PLEASE SEE THE COMMENT
I have a project in a team city that cannot install the necessary packages.
This has been working for more than a year, but this week all builds started to fail. my development process is as follows:
We use github and develop locally with visual studio. We have a teamcity agent for Windows that runs our build, and a teamcity server that automatically runs builds.
I get this error while building:
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902, 9): error MSB3073: The command "nuget install C:\BuildAgent\work\MyProject\MyLibaries\Gelf4Net\Gelf4net\packages.config -o C:\BuildAgent\work\MyProject\MyLibaries\Gelf4Net\Gelf4net\Packages" exited with code 1.
In my .config package, I have the following packages that I need to install:
package id="log4net" version="1.2.11" package id="Newtonsoft.Json" version="4.5.10" package id="RabbitMQ.Client" version="2.8.7"
I read many topics online and tried the following:
- removed the entire package folder from teamcity nuget (force download new packages)
- updated nuget to the latest version (2.5)
- re added all the links to the project and clicked
- project added to teamcity
- enable and disable nuget on teamcity
- added new nuget 2.5 to teamcity
If I run "nuget install C:\BuildAgent\work\MyProject\MyLibaries\Gelf4Net\Gelf4net\packages.config -o C:\BuildAgent\work\MyProject\MyLibaries\Gelf4Net\Gelf4net\Packages" on the build agent it works and installs the packages.
Projects are built and executed locally.
Please rate any suggestions or help.
source share