void AddPropertyWithCondition(ProjectRootElement projectRoot, string name, string value, string condition) { ProjectPropertyGroupElement groupProperty = projectRoot.CreatePropertyGroupElement(); groupProperty.Condition = condition; projectRoot.AppendChild(groupProperty); ProjectPropertyElement property = projectRoot.CreatePropertyElement(name); groupProperty.AppendChild(property); property.Value = value; property.Condition = condition; }
/// <inheritdoc /> protected override ProjectElement CreateNewInstance(ProjectRootElement owner) { return(owner.CreatePropertyElement(this.Name)); }
/// <inheritdoc /> protected override ProjectElement CreateNewInstance(ProjectRootElement owner) { return owner.CreatePropertyElement(this.Name); }