转自:https://www.cnblogs.com/sword88/p/11490304.html
NuGet默认的全局包下载地址一般为:C:\Users\{username}\.nuget\packages
修改方法:
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\"/> </packageSources> <config> <add key="globalPackagesFolder" value="D:\Nuget\.nuget\packages" /> </config> </configuration>