FAKE - F# Make


SemVerHelper

Contains helpers which allow to deal with Semantic Versioning (SemVer).

Nested types and modules

TypeDescription
PreRelease
SemVerInfo

Contains the version information.

Functions and values

Function or valueDescription
parse version
Signature: version:string -> SemVerInfo

Parses the given version string into a SemVerInfo which can be printed using ToString() or compared according to the rules described in the SemVer docs.

Sample

parse "1.0.0-rc.1"     < parse "1.0.0"          // true
parse "1.2.3-alpha"    > parse "1.2.2"          // true
parse "1.2.3-alpha2"   > parse "1.2.3-alpha"    // true
parse "1.2.3-alpha002" > parse "1.2.3-alpha1"   // true
parse "1.5.0-beta.2"   > parse "1.5.0-rc.1"     // false
Fork me on GitHub