public override void Load(MonoDevelop.Core.FilePath file) { foreach (Import im in project.Imports) { imports.Add(new ImportData { Condition = im.Condition }); } foreach (BuildPropertyGroup pg in project.PropertyGroups) { var g = new ProperyGroupData(this) { Condition = pg.Condition }; foreach (BuildProperty p in pg) { var prop = new PropertyData(p.Name, this) { Value = p.FinalValue, RawValue = p.Value }; g.Properties.Add(prop); } propertyGroups.Add(g); } foreach (BuildItemGroup ig in project.ItemGroups) { } }
public override MSBuildPropertyGroup AddNewPropertyGroup(MSBuildPropertyGroup beforeGroup = null) { var g = new ProperyGroupData(this); if (beforeGroup != null) { var i = propertyGroups.IndexOf(beforeGroup); if (i != -1) { propertyGroups.Insert(i, g); return(g); } } propertyGroups.Add(g); return(g); }
public override MSBuildPropertyGroup AddNewPropertyGroup (MSBuildPropertyGroup beforeGroup = null) { var g = new ProperyGroupData (this); if (beforeGroup != null) { var i = propertyGroups.IndexOf (beforeGroup); if (i != -1) { propertyGroups.Insert (i, g); return g; } } propertyGroups.Add (g); return g; }
public override void Load (MonoDevelop.Core.FilePath file) { foreach (Import im in project.Imports) { imports.Add (new ImportData { Condition = im.Condition }); } foreach (BuildPropertyGroup pg in project.PropertyGroups) { var g = new ProperyGroupData (this) { Condition = pg.Condition }; foreach (BuildProperty p in pg) { var prop = new PropertyData (p.Name, this) { Value = p.FinalValue, RawValue = p.Value }; g.Properties.Add (prop); } propertyGroups.Add (g); } foreach (BuildItemGroup ig in project.ItemGroups) { } }