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