This application is designed to download missing packages from an offline Visual Studio solution.
-
Open the solution with Visual Studio
-
Open the nuget console (
Tools>NuGet Package manager>Console) -
Type
Get-Package | Select-Object Id,Version -Unique > packages.txt
-
Copy the
packages.txtfile to the online computer -
Execute
NugetOfflineDownloader.exe packages.txt -o packages [-f .NETFramework] [-u https://customNugetRepository]
To download all packages and their dependency into the
packagesdirectory, filtering only the framework.NETFramework(excluding .NET core versions for example).You can specify with -u option a custom Nuget repository, default is
https://api.nuget.org/v3/index.json. -
Copy the
packagesdirectory to the offline computer -
Add this directory as a nuget source (see https://docs.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio for more information)