%AppData%RoamingNuGetNuGet.Config
添加globalPackagesFolder
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageSources> <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> <add key="forms3.0的版本" value="https://www.myget.org/F/xamarinforms-dev/api/v3/index.json" /> <add key="Microsoft Visual Studio Offline Packages" value="C:Program Files (x86)Microsoft SDKsNuGetPackages" /> </packageSources> <config> <add key="globalPackagesFolder" value="E:.nugetpackages" /> </config> </configuration>
之前的 nuget包 剪切到
E:.nugetpackages
dotnet nuget locals all --list 查看位置: