private Task <string> FindDimensionPropertyAsync(UnconfiguredProject project) { return(ProjectAccessor.OpenProjectXmlForReadAsync(project, projectXml => { ProjectPropertyElement property = FindDimensionProperty(projectXml); if (property != null) { return property.GetUnescapedValue(); } return null; })); }
private static bool TryParseGuid(ProjectPropertyElement property, out Guid result) { string unescapedValue = property.GetUnescapedValue(); return(Guid.TryParse(unescapedValue, out result)); }