16 references to AddItemDefinition
Microsoft.Build (1)
Definition\ProjectItemDefinition.cs (1)
173ProjectItemDefinitionElement itemDefinition = _project.Xml.AddItemDefinition(_itemType);
Microsoft.Build.Engine.OM.UnitTests (14)
Construction\ConstructionEditing_Tests.cs (10)
2005ProjectItemDefinitionElement itemDefinition = project.AddItemDefinition("i"); 2027project.AddItemDefinition("i"); 2050project.AddItemDefinition("i"); 2071project.AddItemDefinition("i"); 2072project.AddItemDefinition("i"); 2073ProjectItemDefinitionElement last = project.AddItemDefinition("i"); 2096project.AddItemDefinition("i"); 2097project.AddItemDefinition("j"); 2547var element = ProjectRootElement.Create().AddItemDefinition("i").AddMetadata("m", "M1"); 2894var element = ProjectRootElement.Create().AddItemDefinition("i").AddMetadata("m", "M1");
Definition\ProjectItem_Tests.cs (2)
1892xml.AddItemDefinition("i").AddMetadata("m", "m1"); 1916xml.AddItemDefinition("i").AddMetadata("m", "m1");
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
89xmlPair.Add2NewChildrenWithVerify<ProjectItemDefinitionElement>("cpp", (p, it) => p.AddItemDefinition(it), (pi, it) => pi.ItemType == it, out var itemDefinition1, out var itemDefinition2); 611var itemDef = xmlPair.AddNewChaildWithVerify<ProjectItemDefinitionElement>(ObjectType.View, "source", (p, s) => p.AddItemDefinition(s), (pe, s) => true);
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Evaluator_Tests.cs (1)
1825import.AddItemDefinition("i").AddMetadata("m", "%(m);m1");