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