GithubHelp home page GithubHelp logo

nusave's Introduction

NuSave - Cache NuGet package for offline use

NuSave gives you the ability to cache NuGet packages from nuget.org or any other source with full dependency tree to your computer for offline use.

Supported platforms: Windows, macOS and Linux.

Written in .NET 5.

Usage

Check nusave --help for usage options.

Cache a single NuGet package with dependencies

nusave cache package "[email protected]" --targetFrameworks "[email protected],[email protected]" --cacheDir "C:\path\to\my-local-feed"

The command above will bring all packages that Newtonsoft.Json depend on, and if there are any duplicates, they will be ignored. NuSave checks for existing .nupkg files and 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 use.

Cache multiple NuGet packages from a .csproj file

nusave cache csproj "C:\path\to\project.csproj" --cacheDir "C:\path\to\my-local-feed"

Cache multiple NuGet packages from an .sln file

nusave cache sln "C:\path\to\solution.sln" --cacheDir "C:\path\to\my-local-feed"

Restore and build a solution using NuSave offline cache

cd C:\path\to\my-solution
dotnet restore --packages C:\path\to\my-local-feed
dotnet build --no-restore

Install

Download the latest release for your platform: https://github.com/eli-ba/nusave/releases

Add the binary to the path. Enjoy! ๐ŸŽ‰

Build

Build nusave.sln .

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

.NET 5 is needed to build and run NuSave.

nusave's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.