SomewhatStudent
SomewhatStudent

Reputation: 121

Unable to Find Package NewtonSoft.json in TFS Build 2017

I am building with TFS 2017. I am currently receiving this in my log:

[error]Core\Install\CSharp.nuget\NuGet.targets(87,9): Error : Unable to find version '9.0.1' of package 'Newtonsoft.Json'.

as well as some other packages. Immediately following, I have this:

[error]Core\Install\CSharp.nuget\NuGet.targets(87,9): Error MSB3073: The command ""E:\agent01\31\s\Core\Install\CSharp.nuget\nuget.exe" install "E:\agent01\31\s\Core\Source\Core.PackageReference\packages.config" -source "" -RequireConsent -solutionDir "E:\agent01\31\s\Core\Install\CSharp\ "" exited with code 1.

I am only switching builds from 2013 to 2017 and know that they should work without going inside of config files and changing anything. The only changes I should have to worry about are with the build machine or in the tasks I've created for this build. I was wondering what potential solutions someone may have.

I have a nuget restore task and all of the correct solutions are being built. Looking in to my nuget restore task, I see near the bottom:

Adding package 'Newtonsoft.Json.9.0.1' to folder 'E:\agent02\12\s\Core\Source\packages'

Upvotes: 0

Views: 522

Answers (1)

SomewhatStudent
SomewhatStudent

Reputation: 121

The issue I found was with the build task. I had sent it to an output directory and that had caused the error.

Upvotes: 0

Related Questions