修改NuGet packages目录路径
在*.sln文件同目录下新建配置文件nuget.config,内容为
<?xml version="1.0" encoding="utf-8"?> <configuration> <config> <add key="repositorypath" value="..\packages\" /> </config> </configuration>
https://www.cnblogs.com/chrishwang/p/change-nuget-packages-directory-path.html