I want to change nuget package folder but it doesn't work. I tried very much tricks but not work. I restart many times VS but not work.
My config:
- Visual Studio Community 2019
- Windows 10 1909 x64
I have a VS solution folder
- MyProjectSln\
- HelloWorld\
- bin
- nuget_packages
- NuGet.Config
- HelloWorld\
I want VS studio nuget package manager console use the "NuGet.Config" file and put all packages downloaded in "nuget_packages"
So nuget packages must be in D:\MyProjetSln\HelloWorld\nuget_packages.
Content example of D:\MyProjetSln\HelloWorld\NuGet.Config :
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<config>
<add key="globalPackagesFolder" value=".\nuget_packages" />
<!-- I have also tried with repositoryPath but not work -->
</config>
</configuration>
The xml syntax is correct in my case (in my file).
Example, when i execute the command "install-package NUnit" from Package Manager Console, it put downloaded packages in D:\MyProjectSln\packages\ and I don't want that.
Thank you for helping !