2

I have a build set up on Team City but can't seem to get NuGet to restore the packages. My build configuration has two steps: Restore Nuget, then Build the solution. I have set up NuGet on TeamCity, so when I create a NuGet build step, I can choose a NuGet version from the drop down: My NuGet build step settings

But when I build, it cant find NuGet:

Failed to find NuGet executable NuGet.CommandLine.3.3.0.nupkg. Check the version is listed in NuGet server settings tab.

Why cant it find NuGet?

UPDATE

enter image description here

enter image description here

Ethan Schofer
  • 1,718
  • 5
  • 26
  • 55
  • Do you want to install NuGet everytime you do a build? – Callum Linington May 12 '16 at 15:50
  • No, I want to restore my nuget packages every time I build. – Ethan Schofer May 12 '16 at 19:56
  • Yeah that you want to do, but not NuGet itself. I'm curious as to `NuGet Settings` it says `The path to NuGet.exe relative to the checkout directory` you have this set to `3.3.0` which I'm pretty sure isn't a relative path... – Callum Linington May 13 '16 at 07:41
  • That field is a dropdown. Ill see if I can put an actual path there. – Ethan Schofer May 13 '16 at 16:49
  • Can you share the build log / screen shots of the NuGet page in Administration? – Matt May 17 '16 at 09:49
  • Are there any warning/errors in teamcity-agent.log file on the agent that does not pock up NuGet? Are there NuGet.CommandLine.*.nupkg directories on this agent under the tools subdirectory? – Alina Mishina May 18 '16 at 12:17
  • It show's in your screen shots that you've set the default version to 3.4.3, but you're explicitly using version 3.3.0 in the NuGet Installer build runner- I agree it should be there based on the NuGet.exe tab in admin. Can you just humour me and choose DEFAULT in the NuGet Installer build runner drop down for the version and see what happens? – Matt May 20 '16 at 11:59

0 Answers0