Table of Contents

Class PlatformManifest

Namespace
RDCore.SDK.Platform
Assembly
RDCore.SDK.Protocols.dll

The platform manifest, rdcore.json at the platform root: where each component of a deployed platform is.

public record PlatformManifest : IEquatable<PlatformManifest>
Inheritance
PlatformManifest
Implements
Inherited Members

Remarks

Written when the platform is deployed (PlatformPublish.ps1), in camelCase, and read regardless of case. The paths are relative to the platform root, with either slash style.

Fields

DefaultCoreExtension

The extension a platform bundles when its manifest does not say: RDCore.Diagnostics.

public const string DefaultCoreExtension = "RDCore.Diagnostics"

Field Value

string

FileName

The name of the manifest file at the platform root.

public const string FileName = "rdcore.json"

Field Value

string

Properties

CoreExtension

The extension the platform bundles: the name of its folder under ExtensionsDirectory.

public string CoreExtension { get; init; }

Property Value

string

Remarks

The core extension reports the platform's first-party diagnostics. The prefixes of their codes (RDC, RDX) are its own: no other extension that declares one is started (RD-VBAL §1.1.4). A manifest that does not name it bundles DefaultCoreExtension.

ExtensionsDirectory

The folder of the platform's extensions: one subfolder each, named for the extension.

public string ExtensionsDirectory { get; init; }

Property Value

string

GeneratedUtc

When the manifest was written, in UTC.

public DateTime GeneratedUtc { get; init; }

Property Value

DateTime

HostService

The executable of the environment host: rdc.exe, which runs in host mode for it.

public string HostService { get; init; }

Property Value

string

LangService

The executable of the language server, which a client starts and connects to.

public string LangService { get; init; }

Property Value

string

MachineRuntimeIdentifier

The runtime identifier this process runs as, in the form RuntimeIdentifier takes: the operating system (win, osx, linux or freebsd), a hyphen, and the architecture of the process in lower case (x64, arm64), as in win-x64. On any other operating system, the identifier .NET gives (RuntimeIdentifier).

public static string MachineRuntimeIdentifier { get; }

Property Value

string

Remarks

A platform whose manifest names this identifier was built for this operating system and this process's architecture. The value is the portable identifier, whatever the distribution of Linux: RuntimeIdentifier can name one (ubuntu.24.04-x64), and a manifest does not. The C library is not part of it: on a Linux that uses musl, the value is linux-x64, as for one that uses glibc, and a platform built for one does not run on the other. The architecture is the process's (ProcessArchitecture): an x64 process that runs emulated on an Arm64 machine has an x64 identifier. The value is neither read from a manifest nor written to one.

ParseServer

The executable of the parse server.

public string ParseServer { get; init; }

Property Value

string

PlatformVersion

The version of the deployed platform.

public string PlatformVersion { get; init; }

Property Value

string

RuntimeIdentifier

The runtime identifier the platform was built for, such as win-x64 or osx-arm64: the manifest's rid. Empty when the manifest does not name one.

[JsonPropertyName("rid")]
public string RuntimeIdentifier { get; init; }

Property Value

string