Interface IPlatformEnvironment
Resolves platform paths from an explicit platform root rather than the process working directory.
public interface IPlatformEnvironment
Remarks
The platform root is the directory that holds rdcore.json and one subfolder per component
(RDCore.CLI/, RDCore.LanguageServer/, …). A component's own base directory is
<Root>/<Component>/, so the root is that directory's parent — independent of the
working directory a process happens to be started with.
Properties
LogsDirectory
Absolute path of the platform logs directory, <Root>/Logs, created if missing.
string LogsDirectory { get; }
Property Value
ManifestPath
Absolute path of the platform manifest, <Root>/rdcore.json.
string ManifestPath { get; }
Property Value
Root
The platform root directory.
string Root { get; }
Property Value
Methods
Resolve(string)
Resolves a root-relative path (either slash style) to an absolute path under Root.
string Resolve(string rootRelativePath)