Skip to content

VerUtilVersion Class

An enhanced implementation of SemVer 2.0.

MethodDescription
Dispose()
PropertyDescription
HasMajorWhether the Major part was specified.
HasMinorWhether the Minor part was specified.
HasPatchWhether the Patch part was specified.
HasRevisionWhether the Revision part was specified.
IsInvalidWhether the version conformed to the spec.
MajorFor version A.B.C.D, Major is A. It is 0 if not specified.
MetadataFor version X.Y.Z-releaselabels+metadata, Metadata is the rest of the string after +. For invalid versions, it is all of the string after the point where it was an invalid string.
MinorFor version A.B.C.D, Minor is B. It is 0 if not specified.
PatchFor version A.B.C.D, Patch is C. It is 0 if not specified.
PrefixPrefix character that was stripped from Version , or the null character if there was no prefix.
ReleaseLabelsFor version X.Y.Z-releaselabels+metadata, ReleaseLabels is the parsed information for releaselabels.
RevisionFor version A.B.C.D, Revision is D. It is 0 if not specified.
VersionString version, which would have stripped the leading ‘v’.
WixToolset.Mba.Core.dll version 4.0.5+b9b2f1b4c69a1b509d487dc950b30b4ec9b0d040
public void Dispose()

Whether the Major part was specified.

public bool HasMajor { get; set; }

Whether the Minor part was specified.

public bool HasMinor { get; set; }

Whether the Patch part was specified.

public bool HasPatch { get; set; }

Whether the Revision part was specified.

public bool HasRevision { get; set; }

Whether the version conformed to the spec.

public bool IsInvalid { get; set; }

For version A.B.C.D, Major is A. It is 0 if not specified.

public System.UInt32 Major { get; set; }

For version X.Y.Z-releaselabels+metadata, Metadata is the rest of the string after +. For invalid versions, it is all of the string after the point where it was an invalid string.

public string Metadata { get; set; }

For version A.B.C.D, Minor is B. It is 0 if not specified.

public System.UInt32 Minor { get; set; }

For version A.B.C.D, Patch is C. It is 0 if not specified.

public System.UInt32 Patch { get; set; }

Prefix character that was stripped from Version , or the null character if there was no prefix.

public System.Char Prefix { get; set; }

For version X.Y.Z-releaselabels+metadata, ReleaseLabels is the parsed information for releaselabels.

public VerUtilVersionReleaseLabel[] ReleaseLabels { get; set; }

For version A.B.C.D, Revision is D. It is 0 if not specified.

public System.UInt32 Revision { get; set; }

String version, which would have stripped the leading ‘v’.

public string Version { get; set; }