예제 #1
0
        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);
                    }
                }
            }
        }
예제 #2
0
 public MSBuildProperty(MSBuildPropertyGroup parent, XmlElement uo)
 {
     this.uo = uo;
 }
예제 #3
0
        public MSBuildProperty(MSBuildPropertyGroup parent)
        {
            XmlDocument doc = parent.UnderlyingObject.OwnerDocument;

            uo = (XmlElement)doc.CreateNode(XmlNodeType.Element, "UndefilnedPropertyName", MSBuildFile.NamespaceName);
        }
예제 #4
0
 public static XmlElement GetKeyForItem(MSBuildPropertyGroup item)
 {
     return(item.UnderlyingObject);
 }
예제 #5
0
        public MSBuildPropertyGroup CreatePropertyGroup()
        {
            MSBuildPropertyGroup res = new MSBuildPropertyGroup(this);

            return(res);
        }