nuget包原来存放位置:
要迁移到的地方
具体操作:
1,新加配置:nuget.config
2, nuget.config配置内容
<?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="E:\NuGet\packages" /> </config> </configuration>
3:最后一步,修改Microsoft.VisualStudio.Offline.config
新增内容:
<config> <add key="globalPackagesFolder" value="E:\NuGet\packages" /> </config>
改完后内容