修改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>
posted @ 2021-11-25 16:01  星畔  阅读(355)  评论(0编辑  收藏  举报