Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing nuget package from GitHub

The command: Install-Package curve25519-uwp installs version 1.0.3 of this package (https://www.nuget.org/packages/curve25519-uwp/)

On GitHub there is a version 1.0.4 that fixes a specific error I am facing.

Can anyone explain how to get that package installed?

I am using visual studio 2015 community edition with git tools installed.

like image 844
Tony Avatar asked Jan 13 '16 07:01

Tony


People also ask

How do I add a NuGet package to Git?

To do so, go to Tools -> Options -> NuGet Package Manager -> Package Sources . Add new source in form of https://nuget.pkg.github.com/<organization>/index.json . You will be prompted to add credentials for the package store.


1 Answers

With NuGet, there is no way to take a pre-version from a Git repository.

You could:

  1. Ask for the release of a new version of the NuGet package, or at least a pre-release.

  2. Clone the repository, build the version, and replace the NuGet package with a local dependency. (Not a good solution!)

  3. Like the above, but put it in your own NuGet server.

  4. Manage the repository as a Git submodule.

  5. Switch from NuGet to Paket which supports references toward a Git repository. (Surely the best solution if your case could appear often.)

like image 141
Philippe Avatar answered Sep 17 '22 04:09

Philippe