Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static string ReadPropertyString(this MSB.Execution.ProjectInstance executedProject, string propertyName)
 => executedProject.GetProperty(propertyName)?.EvaluatedValue;