Daniel Hilgarth
Daniel Hilgarth

Reputation: 174299

nuget.config is ignored, specifically the repositoryPath

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)

Upvotes: 11

Views: 7000

Answers (1)

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174299

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>

Upvotes: 13

Related Questions