protected string ReadPropertyString(MSB.Execution.ProjectInstance executedProject, string executedPropertyName, string evaluatedPropertyName) { var executedProperty = executedProject.GetProperty(executedPropertyName); if (executedProperty != null) { return(executedProperty.EvaluatedValue); } var evaluatedProperty = _loadedProject.GetProperty(evaluatedPropertyName); if (evaluatedProperty != null) { return(evaluatedProperty.EvaluatedValue); } return(null); }
public static string ReadPropertyString(this MSB.Execution.ProjectInstance executedProject, string propertyName) => executedProject.GetProperty(propertyName)?.EvaluatedValue;