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>