Skip to content

Struct ExportTarget

Namespace: Apogee.Export
Assembly: Apogee.Export.dll

A platform an export is made for: an operating system and a processor, named as the .NET runtime identifier (linux-x64).

public readonly record struct ExportTarget : IEquatable<ExportTarget>

Implements

IEquatable<ExportTarget>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

ExportTarget(string, string)

A platform an export is made for: an operating system and a processor, named as the .NET runtime identifier (linux-x64).

public ExportTarget(string Os, string Arch)

Parameters

Os string

The operating system: linux, win or osx.

Arch string

The processor: x64 or arm64.

Properties

Arch

The processor: x64 or arm64.

public string Arch { get; init; }

Property Value

string

Host

The target of the machine that runs this program.

public static ExportTarget Host { get; }

Property Value

ExportTarget

Os

The operating system: linux, win or osx.

public string Os { get; init; }

Property Value

string

Rid

The runtime identifier: linux-x64, win-x64, osx-arm64, osx-x64.

public string Rid { get; }

Property Value

string

Supported

The targets the engine has complete native libraries for.

public static IReadOnlyList<ExportTarget> Supported { get; }

Property Value

IReadOnlyList<ExportTarget>

SupportedList

The names of , separated by commas.

public static string SupportedList { get; }

Property Value

string

Methods

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

TryParse(string, out ExportTarget, out string?)

Reads a runtime identifier. When it is not one of , problem says so and lists them.

public static bool TryParse(string rid, out ExportTarget target, out string? problem)

Parameters

rid string

target ExportTarget

problem string?

Returns

bool