NuGet 복원 ‘버전을 찾을 수 없음’ 패키지로 실패하셨습니까? NuGetToolInstaller 버전을 확인하세요!

작성자

카테고리:

← 피드로
DEV Community · S8ui · 2026-08-17 개발(SW)

S8ui

The Problem

In one of our Azure DevOps pipelines, nuget restore suddenly started failing with an error stating, in essence, that the requested package could not be found in the referenced version. The task referencing the package hadn’t changed — yet the restore stage kept failing.

At first glance, this looks like an issue with the package source, some caching effect, or a broken .nuspec/lockfile. It wasn’t.

The Root Cause

The actual culprit was the version of the NuGetToolInstaller@1 task itself. The pipeline had NuGet pinned to version 6.12.2.

The Fix

Bump the versionSpec in the NuGetToolInstaller@1 task from 6.12.2 to 7.9.0:

  - task: NuGetToolInstaller@1
    displayName: 'Use NuGet 7.9.0'
    inputs:
      versionSpec: 7.9.0
      checkLatest: false

Enter fullscreen mode Exit fullscreen mode

That’s it. After the update, nuget restore ran through cleanly again.

원문에서 계속 ↗