2using System.Xml.Serialization;
12[XmlType(TypeName =
"solverDiscoveryCandidate")]
40 [XmlAttribute(
"solverKind")]
50 [XmlAttribute(
"source")]
72 [XmlElement(
"description")]
83 [XmlElement(
"versionHint")]
96 [XmlAttribute(
"priority")]
107 [XmlAttribute(
"exists")]
126 throw new InvalidOperationException(
127 "A discovery candidate must target a concrete " +
134 throw new InvalidOperationException(
135 "A discovery source is required.");
138 if (
string.IsNullOrWhiteSpace(
141 throw new InvalidOperationException(
142 "A discovery candidate path is required.");
147 throw new InvalidOperationException(
148 "A discovery candidate priority cannot be " +
string Description
Gets or sets a human-readable description of the candidate.
string VersionHint
Gets or sets an optional solver-version hint inferred from the discovered path or file metadata.
SolverDiscoveryCandidate()
Initializes an empty solver-discovery candidate.
int Priority
Gets or sets the priority assigned to the candidate.
SolverKind SolverKind
Gets or sets the solver kind associated with the candidate.
string Path
Gets or sets the discovered directory, assembly, native-library, or executable path.
SolverDiscoverySource Source
Gets or sets the discovery source.
bool Exists
Gets or sets a value indicating whether the candidate path currently exists.
void EnsureValid()
Validates the discovery candidate.
SolverDiscoverySource
Identifies how a solver installation or adapter location was discovered.