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 they need have all packages in your pc.
Open %AppData%\NuGet folder, open existing NuGet. Config file. Edit repositoryPath key and set new destination.
Each package is fully expanded into a subfolder that matches the package identifier and version number. By default these packages are stored at the following location: Windows: %userprofile%\. nuget\packages.
Depending on what sort of project you are using this setting may or may not be successfully to change NuGet packager folder. If you are using a . NET Framework project that has a packages. config file then this setting will change the nuget package folder to C:\projects\ .
Use -OutputDirectory
.
From NuGet CLI reference.
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 :-)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With