首页 文章

如何发布nuget预发行版本包

提问于
浏览
62

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

nuget command line

但我搜索过,我找不到关于如何发布nuget预发布包的文档

enter image description here

2 回答

  • 19

    您只需要指定使用SemVer格式(例如1.0-beta)而不是通常格式(例如1.0)的版本字符串,NuGet会自动将其视为预发布包 .

    "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

  • 75

    此外,如果版本号低于稳定版本,则不会显示预发布版本 . 例如,如果你有

    • MyNuget v1.0.26

    • MyNuget v1.0.25-beta

    只有稳定版本才会出现在列表中 .

    如果你有

    • MyNuget v1.0.26

    • MyNuget v1 . 1 .25-beta

    预售版可以安装 .

相关问题