Visual Studio 2015 ignores my nuget.config
that lies in the solution directory. This file has the following content:
<?xml version="1.0" encoding="utf-8"?>
<settings>
<repositoryPath>../packages/nuget</repositoryPath>
</settings>
Visual Studio however simply puts all packages into the packages folder in the solution directory.
This file has worked fine for years when using Visual Studio 2013. Am I missing something?
I am using the latest version of the NuGet extension (3.2)
Add a nuget. config file in the root of your project repository. This is considered a best practice as it promotes repeatability and ensures that different users have the same NuGet configuration. You may need to configure clear elements to ensure no user or machine specific configuration is applied.
Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.
Globally: to make a credential provider available to all instances of nuget.exe run under the current user's profile, add it to %LocalAppData%\NuGet\CredentialProviders .
Looks like the format I used so far is no longer supported.
The following file works:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="..\packages\nuget" />
</config>
</configuration>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With