TODO:
We should probably cover it here in one go - Updated the top comment
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.
TODO:
We should probably cover it here in one go - Updated the top comment
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.