2using System.Xml.Serialization;
12[XmlType(TypeName =
"solverInstallationPathDefinition")]
63 [XmlAttribute(
"solverKind")]
77 [XmlElement(
"pathPattern")]
87 [XmlElement(
"description")]
101 [XmlAttribute(
"priority")]
112 [XmlAttribute(
"recursiveSearch")]
123 [XmlElement(
"expectedFileName")]
143 throw new InvalidOperationException(
144 "An installation-path definition must target " +
145 "a concrete solver kind.");
148 if (
string.IsNullOrWhiteSpace(
151 throw new InvalidOperationException(
152 "An installation path or path pattern is " +
158 throw new InvalidOperationException(
159 "An installation-path priority cannot be " +
string Description
Gets or sets a human-readable description.
int Priority
Gets or sets the discovery priority associated with the path.
SolverKind SolverKind
Gets or sets the solver associated with the path.
SolverInstallationPathDefinition()
Initializes an empty installation-path definition.
bool RecursiveSearch
Gets or sets a value indicating whether subdirectories should be searched recursively.
SolverInstallationPathDefinition(SolverKind solverKind, string pathPattern, string description)
Initializes an installation-path definition.
void EnsureValid()
Validates the installation-path definition.
string ExpectedFileName
Gets or sets an optional file name expected below the installation path.
string PathPattern
Gets or sets the installation path or path pattern.