Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't specify nuget package folder location [duplicate]

We use a custom location for our packages folder which we specify in a nuget.config file in the same folder as our solution:

<settings>
<repositoryPath>..\..\lib\packages</repositoryPath>
</settings>

Visual Studio 2013 picks this up fine and the NuGet package manager installs packages into the specified folder, lists installed packages correctly, etc.

In Visual Studio 2015 RC the NuGet package manager pops up the "Some packages are missing from this solution, click here to restore" message and if I click the button it creates a new packages folder in the same folder as the solution rather than using the location specified in the nuget.config. Installing a completely new package also puts it into a packages folder under the solution folder rather than the specified one.

How do I get Visual Studio 2015 RC to respect the repository path specified in the nuget.config?

like image 230
Lawrence Johnston Avatar asked Nov 22 '22 17:11

Lawrence Johnston


1 Answers

Make sure your nuget.config is configured like this:

<configuration>
  <config>
    <add key="repositoryPath" value="..\..\lib\packages" />
  </config>
</configuration>
like image 127
Aleksey Avatar answered May 04 '23 22:05

Aleksey