Class InstallationDetector
- Namespace
- JD.AI.Core.Installation
- Assembly
- JD.AI.Core.dll
Detects how JD.AI was installed on the current machine by examining the executable path and querying package managers.
public static class InstallationDetector
- Inheritance
-
InstallationDetector
- Inherited Members
Methods
DetectAsync(CancellationToken)
Detects the current installation method, executable path, version, and RID.
public static Task<InstallationInfo> DetectAsync(CancellationToken ct = default)
Parameters
Returns
GetCurrentRid()
Builds a runtime identifier for the current platform (e.g. win-x64, osx-arm64).
public static string GetCurrentRid()
Returns
GetCurrentVersion()
Gets the running assembly's informational version (without git metadata).
public static string GetCurrentVersion()