从GitHub安装nuget包 [英] Installing nuget package from GitHub
问题描述
命令: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存储库获取预版本。
您可以:
-
要求发布新版本的NuGet包,或者至少一个预发行版。
-
克隆版本库,构建版本,并用本地依赖替换NuGet包。 (不是一个好的解决方案!)
-
像上面那样,但是把它放到你自己的NuGet服务器中。
从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:
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.)
这篇关于从GitHub安装nuget包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!