How to publish nuget prerelease version package

匿名 (未验证) 提交于 2019-12-03 02:05:01

问题:

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

nuget command line

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

回答1:

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.

"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



回答2:

Also, prerelease version don't show up if their version number is lower than the stable version. For example if you have

  • MyNuget v1.0.26
  • MyNuget v1.0.25-beta

Only the stable version will appear in the list.

If you have

  • MyNuget v1.0.26
  • MyNuget v1.1.25-beta

The Prerelease version will be installable.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!