Skip to main content

VerUtil Class

Managed wrapper for verutil.

Methods

MethodDescription
CompareParsedVersions()
CompareStringVersions()
CopyVersion(version)Clone the version.
ParseVersion(version, strict)Parse a version.
VersionFromQword(version)Parse version from qword.

WixToolset.Mba.Core.dll version 4.0.6+73c897383236ddbbbc6ba257634013c1269ceec2

CompareParsedVersions() Method

Declaration

public static int CompareParsedVersions()

Return value

int 0 if equal, 1 if version1 {'>'} version2, -1 if version1 {'<'} version2

CompareStringVersions() Method

Declaration

public static int CompareStringVersions()

Return value

int 0 if equal, 1 if version1 {'>'} version2, -1 if version1 {'<'} version2

CopyVersion(version) Method

Clone the version.

Declaration

public static VerUtilVersion CopyVersion(
VerUtilVersion version
)

Parameters

ParameterTypeDescription
versionVerUtilVersionSource version

Return value

VerUtilVersion Cloned version

ParseVersion(version, strict) Method

Parse a version.

Declaration

public static VerUtilVersion ParseVersion(
string version,
bool strict
)

Parameters

ParameterTypeDescription
versionstringSource version
strictboolWhether to throw exception on invalid version.

Return value

VerUtilVersion Parsed version

VersionFromQword(version) Method

Parse version from qword.

Declaration

public static VerUtilVersion VersionFromQword(
System.Int64 version
)

Parameters

ParameterTypeDescription
versionSystem.Int64Source version

Return value

VerUtilVersion Parsed version