第一节:修改Nuget的下载位置

进入目录: C:\Users\DELL\AppData\Roaming\NuGet,打开 NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>

</configuration>

修改为:D:\Program Files (x86)\Nuget\packages

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
  <config> 
    <add key="globalPackagesFolder" value="D:\Program Files (x86)\Nuget\packages" />
  </config>
</configuration>

 

posted @ 2022-12-30 16:24  Yaopengfei  阅读(104)  评论(0编辑  收藏  举报