How to tell NuGet about installing a package for each project, not a solution

I have a class library project that is reused for different solutions. I would like NuGet to add the toolkit link to the class library project and save it in the project folder not in the solution folder.

Example:

I have

D: \ Projects \ MyClassLibrary

D: \ Projects \ Solution1

D: \ Projects \ Solution2

Using NuGet, I want to add toolkits to the MyClassLibrary project.

Right now, if I have Solution1 open, NuGet is adding a toolbox to

D: \ Projects \ Solution1 \ packages

I would like to tell NuGet to install a toolbox in a folder MyClassLibrary\packages.

How to do it?

+4
source share
1

nuget 2.1:

<configuration>
  <config>
    <add key=" repositoryPath" value=" C:\myteam\teampackages" />
  </config>
  ... 
</configuration>

: " "

----------------- UPDATE -------------------------

nuget automatic package restore . , .nuget.

NuGet.Config, .

+3

All Articles