How to publish nuget prerelease version package

icn picture icn · May 14, 2012 · Viewed 28.5k times · Source

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

enter image description here

Answer

Alexandre Dion picture Alexandre Dion · May 15, 2012

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