47 references to AddItem
installer.tasks (1)
GenerateFileVersionProps.cs (1)
132itemGroup.AddItem(PlatformManifestsItem, $"$(MSBuildThisFileDirectory){manifestFileName}");
Microsoft.Build (1)
Definition\Project.cs (1)
3028itemElement = itemGroupElement.AddItem(itemType, unevaluatedInclude);
Microsoft.Build.Engine.OM.UnitTests (44)
Construction\ConstructionEditing_Tests.cs (36)
1076var item = itemGroup.AddItem("i", "a"); 1748itemGroup.AddItem("h", "h1"); 1775itemGroup.AddItem("h", "h1"); 1936ig1.AddItem("j", "j1"); 1942ig2.AddItem("j", "j2"); 1971itemGroup.AddItem("j", "j1"); 1972itemGroup.AddItem("i", "i1"); 1973itemGroup.AddItem("h", "h1"); 1974itemGroup.AddItem("j", "j2"); 1975itemGroup.AddItem("j", "j0"); 1976itemGroup.AddItem("h", "h0"); 1977itemGroup.AddItem("g", "zzz"); 1978itemGroup.AddItem("k", "aaa"); 2374ProjectItemElement item1 = group1.AddItem("i", "i1"); 2375ProjectItemElement item2 = group1.AddItem("i", "i2"); 2397ProjectItemElement item1 = group1.AddItem("i", "i1"); 2398ProjectItemElement item2 = group1.AddItem("i", "i2"); 2420ProjectItemElement item1 = group1.AddItem("i", "i1"); 2421ProjectItemElement item2 = group1.AddItem("i", "i2"); 2443ProjectItemElement item1 = group1.AddItem("i", "i1"); 2444ProjectItemElement item2 = group1.AddItem("i", "i2"); 2466ProjectItemElement item1 = group1.AddItem("i", "i1"); 2467ProjectItemElement item2 = group1.AddItem("i", "i2"); 2489ProjectItemElement item1 = group1.AddItem("i", "i1"); 2490ProjectItemElement item2 = group1.AddItem("i", "i2"); 2491ProjectItemElement item3 = group1.AddItem("i", "i3"); 2819var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1"); 2830var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1"); 2841var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1").AddMetadata("m", "m1"); 3078var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1"); 3089var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1"); 3100var element = ProjectRootElement.Create().AddTarget("t").AddItemGroup().AddItem("i", "i1").AddMetadata("m", "m1"); 3112var item = itemGroup.AddItem("i1", "i"); 3116item = itemGroup.AddItem("i2", "i"); 3120item = itemGroup.AddItem("i3", "i"); 3146var item = itemGroup.AddItem("i1", "i");
Construction\ProjectItemElement_Tests.cs (2)
1007ProjectItemElement item = project.AddTarget("t").AddItemGroup().AddItem("i", "i1"); 1027ProjectItemElement item = project.AddItemGroup().AddItem("i", "i1");
Construction\ProjectRootElement_Tests.cs (1)
1168var item = ig.AddItem("Foo", "boo$(hoo)");
Construction\WhiteSpacePreservation_Tests.cs (3)
104itemGroup.AddItem("i2", "b"); 257(pe, p) => { pe.ItemGroups.ElementAt(1).AddItem("i2", "b"); }); 330(pe, p) => { pe.ItemGroups.First().AddItem("i2", "b"); });
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (2)
644var itemInTargt = itemGrp.AddNewChaildWithVerify<ProjectItemElement>(ObjectType.View, "targetfile.cs", (p, s) => p.AddItem("cs", s), (pe, s) => pe.Include == s); 697itemGrp.Add2NewChildrenWithVerify<ProjectItemElement>("file.cpp", (ig, inc) => ig.AddItem("cpp", inc), (i, inc) => i.Include == inc, out var item1, out var item2);
Microsoft.Build.Engine.UnitTests (1)
EscapingInProjects_Tests.cs (1)
647itemgroup.AddItem("ProjectFile", projectName);