Exemple #1
0
        public void AddReference(CSharpReference reference)
        {
            XmlNode container = document.CreateNode(XmlNodeType.Element, "ItemGroup", "");
            XmlNode node      = document.CreateNode(XmlNodeType.Element, reference.ReferenceType.ToString(), "");

            for (int i = 0; i < reference.internalAttributes.Count; i++)
            {
                XmlAttribute a = document.CreateAttribute(reference.internalAttributes[i].Key);
                a.Value = reference.internalAttributes[i].Value;
                node.Attributes.Append(a);
            }
            container.AppendChild(node);
            ProjectNode.AppendChild(container);
        }