FAKE - F# Make - A DSL for build tasks and more FAKE
6.0.0

Lookig for older versions of the documentation, pre FAKE v6? See 

v5.fake.build

SemVer Module

Parser which allows to deal with Semantic Versioning (SemVer). Make sure to read the documentation in the SemVerInfo record as well if you manually create versions.

Functions and values

Function or value Description

SemVer.isValid version

Full Usage: SemVer.isValid version

Parameters:
    version : string - The string version to check

Returns: bool

Returns true if input appears to be a parsable semver string

version : string

The string version to check

Returns: bool

SemVer.parse version

Full Usage: SemVer.parse version

Parameters:
    version : string

Returns: 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.

version : string
Returns: SemVerInfo
Example


 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"   // false
 parse "1.5.0-beta.2"   > parse "1.5.0-rc.1"     // false