public MSBuildProperty SetPropertyValue(string name, string value, bool preserveExistingCase, bool isXml = false)
        {
            MSBuildProperty p = GetProperty(name);

            if (p != null)
            {
                if (!preserveExistingCase || !string.Equals(value, p.GetValue(isXml), StringComparison.OrdinalIgnoreCase))
                {
                    p.SetValue(value, isXml);
                }
                return(p);
            }
            return(groups [0].SetPropertyValue(name, value, preserveExistingCase, isXml));
        }
        public MSBuildProperty SetPropertyValue(string name, string value, bool preserveExistingCase, bool isXml = false)
        {
            MSBuildProperty prop = GetProperty(name);

            if (prop == null)
            {
                XmlElement pelem = AddChildElement(name);
                prop = new MSBuildProperty(pelem);
                properties [name] = prop;
                prop.SetValue(value, isXml);
            }
            else if (!preserveExistingCase || !string.Equals(value, prop.GetValue(isXml), StringComparison.OrdinalIgnoreCase))
            {
                prop.SetValue(value, isXml);
            }
            return(prop);
        }
		public MSBuildProperty SetPropertyValue (string name, string value, bool preserveExistingCase, bool isXml = false)
		{
			MSBuildProperty prop = GetProperty (name);
			if (prop == null) {
				XmlElement pelem = AddChildElement (name);
				prop = new MSBuildProperty (pelem);
				properties [name] = prop;
				prop.SetValue (value, isXml);
			} else if (!preserveExistingCase || !string.Equals (value, prop.GetValue (isXml), StringComparison.OrdinalIgnoreCase)) {
				prop.SetValue (value, isXml);
			}
			return prop;
		}