Table of Contents

Class AssemblyDisplayVersion

Namespace
RDCore.SDK
Assembly
RDCore.SDK.dll

Resolves the version an RDCore application reports about itself, e.g. in the LSP serverInfo and clientInfo.

public static class AssemblyDisplayVersion
Inheritance
AssemblyDisplayVersion
Inherited Members

Remarks

The build stamps the full version into AssemblyInformationalVersionAttribute, prerelease suffix and +<commit> build metadata included (e.g. 0.1.0-rc.1+2062f98…), whereas Version only carries the numeric 0.1.0.0.
⚠️ This is for display only: anything that compares versions must keep using Version, because Version cannot parse a prerelease suffix or build metadata.

Fields

Unknown

The version reported when an assembly has neither an informational nor a numeric version.

public const string Unknown = "0.0.0"

Field Value

string

Methods

Get(Assembly?)

Gets the display version of the specified assembly.

public static string Get(Assembly? assembly)

Parameters

assembly Assembly

The assembly to describe, e.g. the result of GetEntryAssembly(); may be null.

Returns

string

The assembly's InformationalVersion as-is when present and not blank; otherwise its Version as major.minor.build; otherwise Unknown.