How to do to specify the directory where I want install package? Because I need install packages in a project where others devs work and when they do download of the project
The packages go in $(SolutionDir)\packages. You have two options:
I'd recommend not checking the packages folder in, since binary files in DVCS make for slow clones :-( In the next version of NuGet, you won't need NuGetPowerTools to avoid checking it in :-)
You can now change the default $(SolutionDir)\packages
folder. See this thread: Is it possible to change the location of packages for NuGet?
Use -OutputDirectory
.
From NuGet CLI reference.