Skip to content

Save NuGet packages with full dependency hierarchy locally.

License

Notifications You must be signed in to change notification settings

bitkompagniet/NuSave

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuSave

Usage

NuSave gives you the ability to download and save a nuget package from nuget.org or any other source, with all it's dependency tree to your computer for offline use. Here is an example:

NuSave -id "Newtonsoft.Json" -version "9.0.1" -outputDirectory "C:\MyLocalFeed"

The command above will bring packages that Newtonsoft.Json depends on, if there are duplicates, they will be ignored. NuSave checks for existing .nupkg files and for hierarchical package folders.

The combination of NuSave and NuGet.Server gives you the ability to download all packages needed on your laptop or workstation for offline access.

Installation

Check the releases page for binaries, or build NuSave.sln .

Don't forget to add the location of NuSave.exe to the $PATH.

.NET Framework 4.6.2 is need to build and run NuSave.

More

Download nuget packages from a .csproj MSBuild project

NuSave -msbuildProject "/path/to/project.csproj" -outputDirectory "/path/to/output/dir"

Pipe the JSON result to PowerShell's Out-GridView

NuSave is able to output the dependency list without downloading it, and formatting the output as JSON, that way you can pipe the content to another program that will use this information to do other tasks, this can be the case for build scripts. The following command will pipe the content to PowerShell's Out-GridView :

NuSave -id "Newtonsoft.Json" -version "9.0.1" -noDownload -json | ConvertFrom-Json) | Out-GridView

The result:

outgridview

Check NuSave -help for more command line options.

About

Save NuGet packages with full dependency hierarchy locally.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%