NuGet修改默认包保存的位置
NuGet默认的全局包下载地址一般为:C:\Users\{username}\.nuget\packages
修改方法:
1 <?xml version="1.0" encoding="utf-8"?> 2 <configuration> 3 <packageSources> 4 <add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\"/> 5 </packageSources> 6 <config> 7 <add key="globalPackagesFolder" value="D:\Nuget\.nuget\packages" /> 8 </config> 9 </configuration>