Skip to content

Nuget warning when using binary cache #2000

Open
TobiasFunk wants to merge 2 commits intomicrosoft:mainfrom
TobiasFunk:main
Open

Nuget warning when using binary cache #2000
TobiasFunk wants to merge 2 commits intomicrosoft:mainfrom
TobiasFunk:main

Conversation

@TobiasFunk
Copy link
Copy Markdown
Contributor

@TobiasFunk TobiasFunk commented Apr 20, 2026

Hey as vcpkg now uses nuget 7.3.0

i get this warning when using the binary cache

warning : "D:\vcpkg\downloads\tools\nuget-7.3.0-windows\nuget.exe" install -ForceEnglishOutput -Verbosity detailed -NonInteractive "D:\vcpkg\buildtrees\packages.config" -OutputDirectory "D:\vcpkg\packages" -ExcludeVersion -PreRelease -PackageSaveMode nupkg -DirectDownload -NoCache -Source ****
NoCache is deprecated and has been renamed to NoHttpCache. Please use NoHttpCache instead.

as we have always nuget-7.3.0 i think we can change to -NoHttpCache

This pull requests changes from -NoCache to -NoHttpCache

This should fix issue:
#1989

Copilot AI review requested due to automatic review settings April 20, 2026 08:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates vcpkg’s NuGet invocations to use the newer -NoHttpCache switch instead of the deprecated -NoCache, avoiding deprecation warnings when NuGet is used for binary caching and .nupkg extraction.

Changes:

  • Replace -NoCache with -NoHttpCache in NuGet install commands used by binary caching.
  • Replace -nocache with -NoHttpCache in the Windows .nupkg extraction path.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vcpkg/binarycaching.cpp Updates NuGet install flags for binary cache restore to use -NoHttpCache.
src/vcpkg/archives.cpp Updates the NuGet-based .nupkg extraction command to use -NoHttpCache.

Comment thread src/vcpkg/binarycaching.cpp
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants