Paket


SemVer

Namespace: Paket

Parser which allows to deal with Semantic Versioning (SemVer).

Functions and values

Function or valueDescription
Parse
Signature: 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

1: 
2: 
3: 
4: 
5: 
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
SortVersions
Signature: string [] -> string []
Zero
Signature: SemVerInfo
Fork me on GitHub