SplitScript reference / FileVersion

FileVersion

record

record FileVersion

A four-part numeric Windows executable version.

The components correspond to major.minor.build.private in a PE VS_FIXEDFILEINFO resource. Keeping the parts typed avoids depending on the inconsistent punctuation of legacy FileVersionInfo strings.

Examples

Compare a discovered version to a literal

let supported = v"1.2.3.4" == v"1.2.3.4"

Capabilities

MemberDescriptionAvailable through
DebugProduces an unambiguous structural representation of a value.
DisplaySupports conversion to a user-facing textual representation.
EquatableSupports equality comparison.

Fields

MemberDescriptionAvailable through
buildBuild version component.
majorMajor version component.
minorMinor version component.
privatePartPrivate version component.

Operators

MemberDescriptionAvailable through
==Reports whether this value and another value are equal.Available through Equatable
!=Reports whether this value and another value differ.Available through Equatable

Methods

MemberDescriptionAvailable through
debugStringConverts the receiver to its unambiguous structural representation.Available through Debug
toStringConverts the receiver to its user-facing string representation.Available through Display
fromPartsConstructs a numeric Windows file version from its four components.
toStringFormats the version as major.minor.build.private.