问题
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.
回答1:
With NuGet, there is no way to take a pre-version from a Git repository.
You could:
Ask for the release of a new version of the NuGet package, or at least a pre-release.
Clone the repository, build the version, and replace the NuGet package with a local dependency. (Not a good solution!)
Like the above, but put it in your own NuGet server.
Manage the repository as a Git submodule.
Switch from NuGet to Paket which supports references toward a Git repository. (Surely the best solution if your case could appear often.)
来源:https://stackoverflow.com/questions/34760754/installing-nuget-package-from-github