问题
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)
回答1:
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>
来源:https://stackoverflow.com/questions/33089884/nuget-config-is-ignored-specifically-the-repositorypath