Local NuGet package feeds are simply hierarchical folder structures on your local computer or network in which you place packages.
- NuGet creates this structure automatically when you use the
nuget addcommand to copy a package to the feed.
- These feeds can then be used as package sources with all other NuGet operations using the CLI, the Package Manager UI, and the Package Manager Console.
The following command adds a package to our local feed.
It will also display the results of the above command.
The following hierarchical folder structure is also created.
nuget add command works with one package at a time, but it won't work when you to want to copy multiple packages.
For multiple packages, you can use
nuget init which copies all the packages from a
source folder to a
destination folder using the same hierarchical layout as mentioned above for a single package with
init command creates a folder for each package identifier, each of which contains a version number folder, within which is the appropriate package.