从GitHub安装nuget包 [英] Installing nuget package from GitHub

查看:434
本文介绍了从GitHub安装nuget包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令:Install-Package curve25519-uwp
安装此软件包的版本1.0.3( https://www.nuget.org/packages/curve25519-uwp/

在GitHub上有一个修正版本1.0.4我正面临一个特定的错误。



任何人都可以解释如何安装该软件包?



我正在使用visual studio 2015 community edition with git工具已安装。

解决方案

使用NuGet,无法从Git存储库获取预版本。



您可以:


  1. 要求发布新版本的NuGet包,或者至少一个预发行版。

  2. 克隆版本库,构建版本,并用本地依赖替换NuGet包。 (不是一个好的解决方案!)


  3. 像上面那样,但是把它放到你自己的NuGet服务器中。

  4. 从NuGet切换到 Paket ,它支持对Git存储库的引用。 (如果您的病例经常出现,当然是最好的解决方案。)


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.

解决方案

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

这篇关于从GitHub安装nuget包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆