问题描述
我了解如何使用nuget命令行发布nuget包
I understand how to publish a nuget package using nuget command line
但是我四处搜寻,没有找到有关如何发布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预发行版本包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!