简体   繁体   English

从GitHub安装nuget包

[英]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/ ) 命令:Install-Package curve25519-uwp安装此软件包的1.0.3版本( https://www.nuget.org/packages/curve25519-uwp/

On GitHub there is a version 1.0.4 that fixes a specific error I am facing. 在GitHub上有一个版本1.0.4修复了我面临的特定错误。

Can anyone explain how to get that package installed? 任何人都可以解释如何安装该软件包?

I am using visual studio 2015 community edition with git tools installed. 我正在使用安装了git工具的visual studio 2015社区版。

With NuGet, there is no way to take a pre-version from a Git repository. 使用NuGet,无法从Git存储库中获取预版本。

You could: 你可以:

  1. Ask for the release of a new version of the NuGet package, or at least a pre-release. 要求发布新版本的NuGet包,或至少发布预发布版。

  2. Clone the repository, build the version, and replace the NuGet package with a local dependency. 克隆存储库,构建版本,并使用本地依赖项替换NuGet包。 (Not a good solution!) (不是一个好的解决方案!)

  3. Like the above, but put it in your own NuGet server. 像上面一样,但把它放在你自己的NuGet服务器上。

  4. Manage the repository as a Git submodule. 将存储库作为Git子模块进行管理。

  5. Switch from NuGet to Paket which supports references toward a Git repository. 从NuGet切换到支持对Git存储库的引用的Paket (Surely the best solution if your case could appear often.) (如果你的案子经常出现,肯定是最好的解决办法。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM