如何发布nuget预发行版本包 [英] How to publish nuget prerelease version package

查看:204
本文介绍了如何发布nuget预发行版本包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解如何使用nuget命令行发布nuget包

I understand how to publish a nuget package using nuget command line

nuget命令行

但是我四处搜寻,没有找到有关如何发布nuget预发行包的文档

But I Have searched around I don't find docs about how to publish a nuget prerelease package

推荐答案

您只需要指定使用SemVer格式(例如1.0-beta)而不是常规格式(例如1.0)的版本字符串,NuGet会自动对其进行处理作为预发行包.

You only need to specify a version string that uses SemVer format (e.g. 1.0-beta) instead of the usual format (e.g. 1.0) and NuGet will automatically treat it as a prerelease package.

从NuGet 1.6开始,NuGet支持通过根据语义版本(SemVer)规范在版本号中指定预发行字符串来创建预发行软件包." 请参阅NuGetDocs-预发行版本

"As of NuGet 1.6, NuGet supports the creation of prerelease packages by specifying a prerelease string in the version number according to the Semantic Versioning (SemVer) specification." See NuGetDocs - Prerelease Versions

这篇关于如何发布nuget预发行版本包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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