豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

NoCache option does not work for packages.config based restore/install (GlobalPackagesFolder) #1406

@zarenner

Description

@zarenner

TODO:
We should probably cover it here in one go - Updated the top comment

  • NoCache should download the package, and store it in the cache
  • NoCaching should download the pacakge but not write it into the cache - Debate the name and the flags before making the change

The NoCache option doesn't work with packages.config based restore or install. The packages are still downloaded to the global package folder, and then copied to the PackagesDirectory.

Also, is %localappdata%\NuGet\Cache used anymore? GetPackageSources still adds it as a source if NoCache isn't specified, but I don't see where anything is ever written to it.

Perhaps this is a gap in my understanding... are %localappdata%\NuGet\Cache ("MachineCache") and %userprofile%.nuget\packages ("GlobalPackagesFolder") meant to do different things? I don't understand why they both exist.

Metadata

Metadata

Assignees

Labels

Priority:3Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.Type:DCRDesign Change Requesthelp wantedConsidered good issues for community contributions.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions