Thursday, April 5, 2012

NuGet and Semantic Versioning

NuGet version 1.6 introduced support for Semantic Versioning, however I have since discovered that NuGet only supports v1.0.0 of the SemVer specification. Unfortunately, this is much more limiting than the latest version, which supports more and better scenarios such as continuous integration builds.

Semantic versions in NuGet must match the following regular expression:


This means a version number with three components (e.g. 1.0.0) optionally followed by a pre-release version number. The pre-release version number must start with a dash (-) and a letter between a-z, and can then be any number of digits, letters and dashes (-). The regular expression is case insensitive.

For example,

  • 0.1.0
  • 0.1.0-alpha
  • 0.1.0-Alpha
  • 0.1.0-a-2


Post a Comment