sguimmara / NugetOfflineDownloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NugetOfflineDownloader

This application is designed to download missing packages from an offline Visual Studio solution.

How to use

  1. Open the solution with Visual Studio

  2. Open the nuget console (Tools > NuGet Package manager > Console)

  3. Type

    Get-Package | Select-Object Id,Version -Unique > packages.txt
  4. Copy the packages.txt file to the online computer

  5. Execute

    NugetOfflineDownloader.exe packages.txt -o packages [-f .NETFramework] [-u https://customNugetRepository]

    To download all packages and their dependency into the packages directory, 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.

  6. Copy the packages directory to the offline computer

  7. 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)

About


Languages

Language:C# 100.0%