设置NuGet package文件夹在vs解决方案目录下

NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <!-- 默认不将 packages 提交到源代码管理 -->
    <add key="disableSourceControlIntegration" value="false" />
  </solution>
  <config> 
    <!-- 指定这个目录下默认的 packages 目录 -->
    <add key= "repositoryPath"  value = "packages" /> 
    <add key= "globalPackagesFolder"  value = "packages" /> 
  </config> 
  <settings> 
    <repositoryPath>packages</repositoryPath> 
  </settings> 
  <packageRestore>
    <!-- 默认启用 packages 还原 -->
    <add key="enabled" value="True" />
  </packageRestore>
</configuration>
posted @ 2021-08-14 16:36  Rick Carter  阅读(578)  评论(0编辑  收藏  举报