Table of Contents

Class Version

Namespace
Whim.Updater
Assembly
Whim.Updater.dll
A semantic version.
public record Version : IEquatable<Version>
Inheritance
Version
Implements
Inherited Members

Properties

Commit

The commit hash.
public string Commit { get; }

Property Value

string

Major

The major version number.
public int Major { get; }

Property Value

int

Minor

The minor version number.
public int Minor { get; }

Property Value

int

Patch

The patch version number.
public int Patch { get; }

Property Value

int

ReleaseChannel

The release channel.
public ReleaseChannel ReleaseChannel { get; }

Property Value

ReleaseChannel

Methods

IsNewerVersion(Version)

Returns true if this is a newer release than the other release.
public bool IsNewerVersion(Version other)

Parameters

other Version

Returns

bool

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

Version

ParseTag(string)

Creates a new Version by parsing the given tagName.
public static Version? ParseTag(string tagName)

Parameters

tagName string

Returns

Version
A new Version if the tag name is valid, otherwise null.

ToString()

Returns a string that represents the current object.
public override string ToString()

Returns

string
A string that represents the current object.