96 references to AddItem
dotnet-openapi (1)
ProjectExtensions.cs (1)
14
var item = project.
AddItem
(tagName, include).Single();
Microsoft.Build.Engine.OM.UnitTests (84)
Construction\ProjectFormatting_Tests.cs (10)
115
project.
AddItem
("Compile", "Class1.cs");
148
project.
AddItem
("Compile", "Class2.cs");
181
project.
AddItem
("Compile", "Program.cs");
211
project.
AddItem
("Compile", "Program.cs");
238
project.
AddItem
("Compile", "Program.cs");
533
var item = project.
AddItem
("ProjectReference", @"..\CLREXE\CLREXE.vcxproj");
554
var item = project.
AddItem
("NotProjectReference", @"..\CLREXE\CLREXE.vcxproj");
576
var item = project.
AddItem
("NotProjectReference", @"..\CLREXE\CLREXE.vcxproj");
599
var item = project.
AddItem
("NotProjectReference", @"..\CLREXE\CLREXE.vcxproj");
667
project.
AddItem
("Compile", "Program.cs");
Construction\ProjectItemElement_Tests.cs (3)
956
ProjectItem item = project.
AddItem
("i", "i1")[0];
972
ProjectItem item = project.
AddItem
("i", "i1")[0];
988
ProjectItem item = project.
AddItem
("i", "i1")[0];
Definition\DefinitionEditing_Tests.cs (48)
122
new SetupProject(p => { p.
AddItem
("a", "1.foo"); })
137
p.
AddItem
("a", "1.foo");
138
p.
AddItem
("a", "2.foo");
152
project.
AddItem
("i", "i1");
179
project.
AddItem
("i", "i%281%29");
234
project.
AddItem
("i", String.Empty);
269
project.
AddItem
("i", "$(p)");
290
project.
AddItem
("i", wildcard);
313
project.
AddItem
("h", "h1");
316
ProjectItem item = project.
AddItem
("i", "@(h)")[0];
329
IList<ProjectItem> items = project.
AddItem
(
349
project.
AddItem
("i", "*.xxx");
373
project.
AddItem
("i", "i1.xxx;i2.xxx");
398
project.
AddItem
("i", "i1");
424
project.
AddItem
("i", "i1.xxx");
450
project.
AddItem
("i", "i1.xxx");
474
ProjectItemElement item2 = project.
AddItem
("i", "i1.xxx")[0].Xml;
499
project.
AddItem
("j", "j1.xxx");
528
project.
AddItem
(
561
ProjectItemElement item2 = project.
AddItem
("i", @"c:\subdir1\a\b\c\i1.xyx")[0].Xml;
590
project.
AddItem
("i", "i1.xxx");
645
project.
AddItem
("i", "i1.xxx");
833
project.
AddItem
("i", "i1.xxx");
856
project.
AddItem
("i", "*.xxx");
857
project.
AddItem
("i", "i1");
884
project.
AddItem
("i", "i1");
911
project.
AddItem
("h", "h1");
912
project.
AddItem
("i", "i1");
938
project.
AddItem
("h", "h1");
939
project.
AddItem
("h", "h2");
940
project.
AddItem
("i", "i1");
970
project.
AddItem
("i", "i1");
1137
project.
AddItem
("i", wildcard);
1168
project.
AddItem
("i", "i1");
1208
ProjectItem item0 = project.
AddItem
("i", "i1")[0];
1301
project.
AddItem
("i", "i1");
1555
project.
AddItem
("i", "i1");
1618
var metadatum = project.
AddItem
("i", "i1")[0].SetMetadataValue("p", "v1");
1633
var item = project.
AddItem
("i", "i1")[0];
1648
var item = project.
AddItem
("i", "i1")[0];
1722
var metadatum = project.
AddItem
("i", "i1")[0].SetMetadataValue("p", "v1");
1737
var metadatum = project.
AddItem
("i", "i1")[0].SetMetadataValue("p", "v1");
1759
project.
AddItem
("i", "i1");
1761
project.
AddItem
("i", "i2");
1863
ProjectItem item = project.
AddItem
("i", "i1")[0];
1891
ProjectItem item = project.
AddItem
("i", "i1")[0];
1920
ProjectItem item = project.
AddItem
("i", "i1")[0];
1949
IList<ProjectItem> items = project.
AddItem
("i", "a;b");
Definition\Project_Tests.cs (4)
1796
project.
AddItem
("i", "i1");
1810
ProjectItem item1 = project.
AddItem
("i", "i1;j1")[0];
2852
project.
AddItem
("new", "new value");
3840
project.
AddItem
("foo", "bar");
Definition\ProjectItem_Tests.cs (12)
80
ProjectItem item = project.
AddItem
("i", "i1")[0];
786
Should.Throw<InvalidProjectFileException>(() => { _ = project.
AddItem
("i", unevaluatedInclude); });
838
_ = project.
AddItem
("i", unevaluatedInclude);
1866
ProjectItem item = project.
AddItem
("i", "i1")[0];
1925
ProjectItem item = project.
AddItem
("i", "i1")[0];
1958
ProjectItem item = project.
AddItem
("i", "i1")[0];
1989
project.
AddItem
("File", "*.cs");
2016
ProjectItem item = project.
AddItem
("i", "i1")[0];
2034
ProjectItem item = project.
AddItem
("i", "i1")[0];
2054
import.
AddItem
("i", "i1");
2085
import.
AddItem
("i", "i1");
2116
ProjectItem item = import.
AddItem
("i", "i1")[0];
Definition\ProjectMetadata_Tests.cs (6)
30
ProjectItem item = project.
AddItem
("i", "i1")[0];
88
ProjectItem item = project.
AddItem
("i", "i1")[0];
109
ProjectItem item = project.
AddItem
("i", "i1")[0];
126
project.
AddItem
("i", "i1");
127
ProjectItem item = project.
AddItem
("j", "j1")[0];
436
ProjectMetadata metadata = project.
AddItem
("i", "i1")[0].SetMetadataValue("m", "m1");
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (1)
55
var added = (metadata == null) ? toAdd.
AddItem
(itemType, unevaluatedInclude) : toAdd.AddItem(itemType, unevaluatedInclude, metadata);
Microsoft.Build.Engine.UnitTests (11)
Definition\ItemDefinitionGroup_Tests.cs (2)
1231
p.
AddItem
("i", "i1");
1259
p.
AddItem
("i", "i1");
Definition\ProjectEvaluationContext_Tests.cs (2)
216
project.
AddItem
("a", "b");
1010
project.
AddItem
("a", "b");
EscapingInProjects_Tests.cs (4)
220
project.
AddItem
("MyWildCard", "foo;bar.weirdo");
265
project.
AddItem
("MyWildCard", "$(FilenameWithSemicolon).weirdo");
473
IEnumerable<ProjectItem> newItems = project.
AddItem
("MyWildCard", "foo%253bbar.weirdo");
515
IEnumerable<ProjectItem> newItems = project.
AddItem
("MyWildCard", "foo.AAA%253bBBB");
Evaluation\Evaluator_Tests.cs (3)
1522
ProjectItem item = project.
AddItem
("i", "i1")[0];
1990
project.
AddItem
("i", "i6");
1991
project.
AddItem
("i", "i7");