Installing nuget package from GitHub

风流意气都作罢 提交于 2019-12-03 16:29:40

问题


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:

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



来源:https://stackoverflow.com/questions/34760754/installing-nuget-package-from-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!