修改NUGET包默认存放位置

%AppData%\Roaming\NuGet\NuGet.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 SDKs\NuGetPackages\" />
  </packageSources>
<config>
     <add key="globalPackagesFolder" value="E:\.nuget\packages" />
  </config>
</configuration>

 

之前的 nuget包 剪切到

E:\.nuget\packages

dotnet nuget locals all --list 查看位置:  

 

 

posted @ 2021-09-19 18:07  tofight  阅读(222)  评论(0编辑  收藏  举报