void ParsePropertyGroupsAndProperties() { var xmlManager = new XmlNamespaceManager(this.UnderlyingObject.NameTable); xmlManager.AddNamespace("prefix", "http://schemas.microsoft.com/developer/msbuild/2003"); foreach (XmlElement xmlNode in this.UnderlyingObject.SelectNodes(@"//prefix:PropertyGroup", xmlManager)) { var propertyGroup = new MSBuildPropertyGroup(this); this.propertyGroups.Add(propertyGroup); foreach (XmlElement xmlNodeProperty in xmlNode.ChildNodes) { var propertyInstance = new MSBuildProperty(propertyGroup, xmlNodeProperty); if (this.properties.Contains(propertyInstance.Name) == false) { this.properties.Add(propertyInstance); } } } }
public MSBuildProperty(MSBuildPropertyGroup parent, XmlElement uo) { this.uo = uo; }
public MSBuildProperty(MSBuildPropertyGroup parent) { XmlDocument doc = parent.UnderlyingObject.OwnerDocument; uo = (XmlElement)doc.CreateNode(XmlNodeType.Element, "UndefilnedPropertyName", MSBuildFile.NamespaceName); }
public static XmlElement GetKeyForItem(MSBuildPropertyGroup item) { return(item.UnderlyingObject); }
public MSBuildPropertyGroup CreatePropertyGroup() { MSBuildPropertyGroup res = new MSBuildPropertyGroup(this); return(res); }