.Net Core How to copy solution nuget packages to specific directory
Just as Lex said, you should create a local feed to store those nuget packages, then make this local feed as package source and add the package to the project from that local package source.
To accomplish this, you can follow my another thread for some more details:
Installing NuGet package located in local package repository into a new Visual Studio Solution
- Add those packages .nupkg into your local repository folder (Including those versions that are no longer available on the NuGet
repository).
Head into Visual Studio and open the NuGet Settings dialog via Tools
NuGet Package Manager > Package Manager Settings. Click the Package Sources tab within the settings dialog, followed by the plus
icon in the top left to add a new package source.
Enter the Name and Source of your local repository. The name can be any string and will be the name displayed in the NuGet Package
Manager within Visual Studio.
Besides, you can also copy those packages to the Microsoft Visual Studio Offline Packages folder:
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
Then add the package to the project from the offline folder.
Once you have installed those packages to the .net core project, those packages would be cached at the global directory.
Hope this helps.