Class Version
A semantic version.
public record Version : IEquatable<Version>
- Inheritance
-
Version
- Implements
- Inherited Members
Properties
Commit
The commit hash.
public string Commit { get; }
Property Value
Major
The major version number.
public int Major { get; }
Property Value
Minor
The minor version number.
public int Minor { get; }
Property Value
Patch
The patch version number.
public int Patch { get; }
Property Value
ReleaseChannel
The release channel.
public ReleaseChannel ReleaseChannel { get; }
Property Value
Methods
IsNewerVersion(Version)
Returns true if this is a newer release than the
other
release.public bool IsNewerVersion(Version other)
Parameters
other
Version
Returns
ParseProductVersion(string)
Parses a version string in the form of "v{major}.{minor}.{patch}.{build}".
This is the format returned by GetWhimVersion()
public static Version? ParseProductVersion(string version)
Parameters
version
string
Returns
ParseTag(string)
Creates a new Version by parsing the given
tagName
.public static Version? ParseTag(string tagName)
Parameters
tagName
string
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
- A string that represents the current object.