Skip to content

Class ModulePackageReference

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes a package input that can be loaded into the engine runtime.

public sealed class ModulePackageReference

objectModulePackageReference

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

ModulePackageReference(string, string?, string?)

Section titled “ ModulePackageReference(string, string?, string?)”

Initializes a new instance of the class.

public ModulePackageReference(string path, string? id = null, string? kind = null)

path string

The assembly or manifest path.

id string?

The optional package identifier override.

kind string?

The package input kind.

Identifies a package input that points directly to an assembly path.

public const string AssemblyPathKind = "assembly-path"

string

Identifies a package input that was discovered from a directory manifest scan.

public const string DirectoryManifestKind = "directory-manifest"

string

Identifies a package input that points directly to a manifest file.

public const string ManifestFileKind = "manifest-file"

string

Gets the optional package identifier override.

public string? Id { get; }

string?

Gets a value indicating whether this reference points directly to an assembly path.

public bool IsAssemblyPath { get; }

bool

Gets a value indicating whether this reference points to a manifest-backed package input.

public bool IsManifestFile { get; }

bool

Gets the normalized package input kind.

public string Kind { get; }

string

Gets the assembly or manifest path.

public string Path { get; }

string

Creates a manifest-backed package reference.

public static ModulePackageReference FromManifest(string manifestPath, string? id = null)

manifestPath string

The manifest path to load.

id string?

The optional package identifier override.

ModulePackageReference

A manifest-backed package reference.