Azure DevOps NuGet Restore Failures Traced to Outdated NuGetToolInstaller Version
An Azure DevOps pipeline began failing during the NuGet restore stage with an error indicating a package version could not be found, despite no changes to the relevant task. The root cause was not a broken package source or corrupted lockfile, but an outdated NuGet version pinned in the NuGetToolInstaller@1 task. The pipeline had NuGet locked to version 6.12.2, which was causing the restore process to break silently. Upgrading the versionSpec in the NuGetToolInstaller@1 task from 6.12.2 to 7.9.0 resolved the issue entirely. The fix required only a single configuration change, after which the NuGet restore stage completed successfully.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in