299 references to GetItems
dotnet-openapi (3)
Commands\BaseCommand.cs (1)
155
var items = project.
GetItems
(tagName);
Commands\RefreshCommand.cs (1)
42
var openApiReferenceItems = project.
GetItems
(OpenApiReference);
Commands\RemoveCommand.cs (1)
54
var openApiReferenceItems = project.
GetItems
(tagName);
Microsoft.Build (2)
Construction\Solution\SolutionProjectGenerator.cs (1)
2153
IEnumerable<ProjectItem> references = msbuildProject.
GetItems
("ProjectDependency");
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
194
/// Facilitate remoting the <see cref="Project.
GetItems
"/>.
Microsoft.Build.Engine.OM.UnitTests (213)
Construction\ProjectFormatting_Tests.cs (2)
286
var itemToRemove = project.
GetItems
("Compile").Single(item => item.EvaluatedInclude == "Class2.cs");
325
var itemToEdit = project.
GetItems
("Compile").Single(item => item.EvaluatedInclude == "Class2.cs");
Definition\DefinitionEditing_Tests.cs (21)
167
Assert.Equal("i1", Helpers.GetFirst(project.
GetItems
("i")).EvaluatedInclude);
194
Assert.Equal("i(1)", Helpers.GetFirst(project.
GetItems
("i")).EvaluatedInclude);
677
Helpers.GetFirst(project.
GetItems
("i")).SetMetadataValue("n", "n1");
722
Helpers.GetFirst(project.
GetItems
("i")).SetMetadataValue("m", "m2");
762
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m");
798
Helpers.GetFirst(project.
GetItems
("i")).RemoveMetadata("m");
1002
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1034
ProjectItem item = Helpers.MakeList(project.
GetItems
("i"))[1];
1063
ProjectItem item = Helpers.MakeList(project.
GetItems
("i"))[1];
1174
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1195
Assert.Empty(Helpers.MakeList(project.
GetItems
("i")));
1198
Assert.True(object.ReferenceEquals(item, Helpers.GetFirst(project.
GetItems
("j"))));
1218
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1269
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1285
Assert.True(object.ReferenceEquals(itemGroupElement, Helpers.GetFirst(project.
GetItems
("i")).Xml.Parent));
1306
project.RemoveItem(Helpers.GetFirst(project.
GetItems
("i")));
1337
project.RemoveItem(Helpers.GetFirst(project.
GetItems
("i")));
1365
project.RemoveItem(Helpers.GetFirst(project.
GetItems
("i")));
1437
Assert.Empty(Helpers.MakeList(project.
GetItems
("i")));
2091
Assert.Equal("i1", Helpers.GetFirst(project.
GetItems
("i")).EvaluatedInclude);
2118
Assert.Equal("i(1)", Helpers.GetFirst(project.
GetItems
("i")).EvaluatedInclude);
Definition\EditingElementsReferencedByOrReferences_Tests.cs (15)
35
ProjectItem item = project.
GetItems
("I").Where(i => i.UnevaluatedInclude == "X").First();
49
IEnumerable<ProjectItem> items = project.
GetItems
("I");
69
ProjectItem item = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
98
ProjectItem item = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
137
ProjectItem item1 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "X").First();
140
ProjectItem item2 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
188
ProjectItem item1 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "X").First();
210
item1 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "X").First();
212
ProjectItem item2 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
240
ProjectItem item1 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "X").First();
244
ProjectItem item2 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
264
item1 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "X").First();
266
item2 = project.
GetItems
("I").Where(i => i.EvaluatedInclude == "Y").First();
286
ProjectItem item = project.
GetItems
("I").First();
302
item = project.
GetItems
("I").First();
Definition\Project_Tests.cs (34)
603
List<ProjectItem> items = Helpers.MakeList(project.
GetItems
("i"));
653
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(
685
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll"));
690
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll"));
721
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar);
757
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar);
796
project.
GetItems
("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory /* remove c:\ */, "obj", "i386"));
1503
project.
GetItems
("I").ShouldHaveSingleItem();
1504
project.
GetItems
("I").First().EvaluatedInclude.ShouldBe(i);
1505
project.
GetItems
("I").First().GetMetadataValue("M").ShouldBe(m);
1589
project.
GetItems
("I").ShouldHaveSingleItem();
1590
project.
GetItems
("I").First().EvaluatedInclude.ShouldBe(i);
1591
project.
GetItems
("I").First().GetMetadataValue("M").ShouldBe(m);
1749
count = Helpers.Count(project.
GetItems
("foo"));
1762
count = Helpers.Count(project.
GetItems
("foo"));
1858
Helpers.MakeList(project.
GetItems
("i"))[0].EvaluatedInclude.ShouldBe("i1");
1894
Helpers.MakeList(project.
GetItems
("i"))[0].EvaluatedInclude.ShouldBe("i2");
1930
Helpers.MakeList(project.
GetItems
("i"))[0].EvaluatedInclude.ShouldBe("i2");
1980
project.
GetItems
("i").ElementAt(0).EvaluatedInclude.ShouldBe("v1_v2");
1981
project.
GetItems
("i").ShouldHaveSingleItem();
1982
project.
GetItems
("j").ElementAt(0).EvaluatedInclude.ShouldBe("v1_v2");
1983
project.
GetItems
("j").ShouldHaveSingleItem();
2012
project.
GetItems
("i").ShouldBeEmpty();
2045
project.
GetItems
("i").ElementAt(0).GetMetadataValue("m").ShouldBe("m0;m1");
2222
ProjectItem itemToRemove = Helpers.GetFirst(project.
GetItems
("Compile"));
2244
ProjectItem itemToRemove = Helpers.GetFirst(project.
GetItems
("Compile"));
2268
project.RemoveItems(project.
GetItems
("i"));
2293
List<ProjectItem> list = new List<ProjectItem>() { project.
GetItems
("i").FirstOrDefault(), project.
GetItems
("j").FirstOrDefault() };
2317
project.RemoveItems(project.
GetItems
("j").Take(2));
2352
project.RemoveItems(project.
GetItems
("i"));
2404
ProjectItem item = project.
GetItems
("i").FirstOrDefault();
2510
IEnumerable<ProjectItem> items = project.
GetItems
("i");
4424
IList<ProjectItem> items = Helpers.MakeList(project.
GetItems
("i"));
Definition\ProjectItem_Tests.cs (116)
164
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1199
project.
GetItems
("i").First().SetMetadataValue("m", "m2");
1201
ProjectItem item1 = project.
GetItems
("i").First();
1202
ProjectItem item2 = project.
GetItems
("j").First();
1242
ProjectItem item1 = project.
GetItems
("i").First();
1243
ProjectItem item1b = project.
GetItems
("i").ElementAt(1);
1244
ProjectItem item1c = project.
GetItems
("i").ElementAt(2);
1245
ProjectItem item2 = project.
GetItems
("j").First();
1293
ProjectItem item1 = project.
GetItems
("i").First();
1294
ProjectItem item1b = project.
GetItems
("i").ElementAt(1);
1295
ProjectItem item2 = project.
GetItems
("j").First();
1363
Assert.Equal("l0", project.
GetItems
("i").First().GetMetadataValue("l"));
1364
Assert.Equal("m1", project.
GetItems
("i").First().GetMetadataValue("m"));
1365
Assert.Equal("n1", project.
GetItems
("i").First().GetMetadataValue("n"));
1366
Assert.Equal("", project.
GetItems
("i").First().GetMetadataValue("o"));
1367
Assert.Equal("", project.
GetItems
("i").First().GetMetadataValue("p"));
1369
Assert.Equal("l0", project.
GetItems
("j").First().GetMetadataValue("l"));
1370
Assert.Equal("m1", project.
GetItems
("j").First().GetMetadataValue("m"));
1371
Assert.Equal("n1", project.
GetItems
("j").First().GetMetadataValue("n"));
1372
Assert.Equal("o2", project.
GetItems
("j").First().GetMetadataValue("o"));
1373
Assert.Equal("p2", project.
GetItems
("j").First().GetMetadataValue("p"));
1375
Assert.Equal("l0", project.
GetItems
("k").First().GetMetadataValue("l"));
1376
Assert.Equal("m1", project.
GetItems
("k").First().GetMetadataValue("m"));
1377
Assert.Equal("n1", project.
GetItems
("k").First().GetMetadataValue("n"));
1378
Assert.Equal("o2", project.
GetItems
("k").First().GetMetadataValue("o"));
1379
Assert.Equal("p4", project.
GetItems
("k").First().GetMetadataValue("p"));
1381
Assert.Equal("l0", project.
GetItems
("l").First().GetMetadataValue("l"));
1382
Assert.Equal("m1", project.
GetItems
("l").First().GetMetadataValue("m"));
1383
Assert.Equal("n1", project.
GetItems
("l").First().GetMetadataValue("n"));
1384
Assert.Equal("o2", project.
GetItems
("l").First().GetMetadataValue("o"));
1385
Assert.Equal("p4", project.
GetItems
("l").First().GetMetadataValue("p"));
1387
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("l"));
1388
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("m"));
1389
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("n"));
1390
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("o"));
1391
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("p"));
1393
Assert.Equal("l0", project.
GetItems
("m").First().GetMetadataValue("l"));
1394
Assert.Equal("m1", project.
GetItems
("m").First().GetMetadataValue("m"));
1395
Assert.Equal("n1", project.
GetItems
("m").First().GetMetadataValue("n"));
1396
Assert.Equal("o4", project.
GetItems
("m").First().GetMetadataValue("o"));
1397
Assert.Equal("p4", project.
GetItems
("m").First().GetMetadataValue("p"));
1399
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("l"));
1400
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("m"));
1401
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("n"));
1402
Assert.Equal("o4", project.
GetItems
("m").ElementAt(1).GetMetadataValue("o"));
1403
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("p"));
1406
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("l").Xml, project.
GetItems
("m").First().GetMetadata("l").Xml));
1407
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("m").Xml, project.
GetItems
("m").First().GetMetadata("m").Xml));
1408
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("n").Xml, project.
GetItems
("m").First().GetMetadata("n").Xml));
1409
Assert.True(Object.ReferenceEquals(project.
GetItems
("j").First().GetMetadata("o").Xml, project.
GetItems
("k").First().GetMetadata("o").Xml));
1410
Assert.True(Object.ReferenceEquals(project.
GetItems
("k").First().GetMetadata("p").Xml, project.
GetItems
("m").First().GetMetadata("p").Xml));
1411
Assert.True(!Object.ReferenceEquals(project.
GetItems
("j").First().GetMetadata("p").Xml, project.
GetItems
("m").First().GetMetadata("p").Xml));
1461
Assert.Equal("l0", project.
GetItems
("i").First().GetMetadataValue("l"));
1462
Assert.Equal("m1", project.
GetItems
("i").First().GetMetadataValue("m"));
1463
Assert.Equal("n1", project.
GetItems
("i").First().GetMetadataValue("n"));
1464
Assert.Equal("", project.
GetItems
("i").First().GetMetadataValue("o"));
1465
Assert.Equal("", project.
GetItems
("i").First().GetMetadataValue("p"));
1467
Assert.Equal("l0", project.
GetItems
("j").First().GetMetadataValue("l"));
1468
Assert.Equal("m1", project.
GetItems
("j").First().GetMetadataValue("m"));
1469
Assert.Equal("n1", project.
GetItems
("j").First().GetMetadataValue("n"));
1470
Assert.Equal("o2", project.
GetItems
("j").First().GetMetadataValue("o"));
1471
Assert.Equal("p2", project.
GetItems
("j").First().GetMetadataValue("p"));
1473
Assert.Equal("l0", project.
GetItems
("k").First().GetMetadataValue("l"));
1474
Assert.Equal("m1", project.
GetItems
("k").First().GetMetadataValue("m"));
1475
Assert.Equal("n1", project.
GetItems
("k").First().GetMetadataValue("n"));
1476
Assert.Equal("o2", project.
GetItems
("k").First().GetMetadataValue("o"));
1477
Assert.Equal("p4", project.
GetItems
("k").First().GetMetadataValue("p"));
1479
Assert.Equal("l0", project.
GetItems
("l").First().GetMetadataValue("l"));
1480
Assert.Equal("m1", project.
GetItems
("l").First().GetMetadataValue("m"));
1481
Assert.Equal("n1", project.
GetItems
("l").First().GetMetadataValue("n"));
1482
Assert.Equal("o2", project.
GetItems
("l").First().GetMetadataValue("o"));
1483
Assert.Equal("p4", project.
GetItems
("l").First().GetMetadataValue("p"));
1485
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("l"));
1486
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("m"));
1487
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("n"));
1488
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("o"));
1489
Assert.Equal("", project.
GetItems
("l").ElementAt(1).GetMetadataValue("p"));
1491
Assert.Equal("l0", project.
GetItems
("m").First().GetMetadataValue("l"));
1492
Assert.Equal("m1", project.
GetItems
("m").First().GetMetadataValue("m"));
1493
Assert.Equal("n1", project.
GetItems
("m").First().GetMetadataValue("n"));
1494
Assert.Equal("o4", project.
GetItems
("m").First().GetMetadataValue("o"));
1495
Assert.Equal("p4", project.
GetItems
("m").First().GetMetadataValue("p"));
1497
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("l"));
1498
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("m"));
1499
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("n"));
1500
Assert.Equal("o4", project.
GetItems
("m").ElementAt(1).GetMetadataValue("o"));
1501
Assert.Equal("", project.
GetItems
("m").ElementAt(1).GetMetadataValue("p"));
1504
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("l").Xml, project.
GetItems
("m").First().GetMetadata("l").Xml));
1505
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("m").Xml, project.
GetItems
("m").First().GetMetadata("m").Xml));
1506
Assert.True(Object.ReferenceEquals(project.
GetItems
("i").First().GetMetadata("n").Xml, project.
GetItems
("m").First().GetMetadata("n").Xml));
1507
Assert.True(Object.ReferenceEquals(project.
GetItems
("j").First().GetMetadata("o").Xml, project.
GetItems
("k").First().GetMetadata("o").Xml));
1508
Assert.True(Object.ReferenceEquals(project.
GetItems
("k").First().GetMetadata("p").Xml, project.
GetItems
("m").First().GetMetadata("p").Xml));
1509
Assert.True(!Object.ReferenceEquals(project.
GetItems
("j").First().GetMetadata("p").Xml, project.
GetItems
("m").First().GetMetadata("p").Xml));
1895
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1919
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
1951
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
2067
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
2098
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
2130
item = Helpers.GetFirst(project.
GetItems
("i"));
2159
var metadata = project.
GetItems
("I").FirstOrDefault().SetMetadataValue("M", "$(P);@(Foo)", true);
2185
var item = project.
GetItems
("I").FirstOrDefault();
2218
var items = project.
GetItems
("I");
2278
var items = project.
GetItems
("I");
3710
itemsFromFragmentWithGlobs = Helpers.MakeList(new Project(testProject.ProjectFile).
GetItems
("i"));
Definition\ProjectItemDefinition_Tests.cs (8)
70
Assert.Equal("v", Helpers.GetFirst(project.
GetItems
("i")).GetMetadataValue("m"));
248
ProjectItem item = project.
GetItems
("i").ElementAt(0);
275
ProjectItem item = project.
GetItems
("i").ElementAt(0);
302
ProjectItem item = project.
GetItems
("i").ElementAt(0);
333
ProjectItem item = project.
GetItems
("i").ElementAt(0);
361
ProjectItem item = project.
GetItems
("i").ElementAt(0);
391
ProjectItem item = project.
GetItems
("i").ElementAt(0);
419
ProjectItem item = project.
GetItems
("i").ElementAt(0);
Definition\ProjectMetadata_Tests.cs (12)
60
Helpers.GetFirst(project.
GetItems
("i")).SetMetadataValue("m1", "v2");
61
Helpers.GetFirst(project.
GetItems
("i")).SetMetadataValue("m2", "v%214");
80
Assert.Equal("v!4", Helpers.GetFirst(project.
GetItems
("i")).GetMetadataValue("m2"));
162
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("j")).GetMetadata("m1");
189
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
215
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
242
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
274
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
306
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
338
ProjectMetadata metadatum = Helpers.GetFirst(project.
GetItems
("i")).GetMetadata("m1");
469
ProjectItem item = Helpers.GetFirst(project.
GetItems
("i"));
494
ProjectItem item = project.
GetItems
("None").Single();
Definition\ProtectImports_Tests.cs (4)
246
Assert.Single(project.
GetItems
(NewValue)); // "Item in project didn't change name"
288
Assert.Single(project.
GetItems
(ItemType)); // "Item in project wasn't removed."
525
IEnumerable<ProjectItem> items = project.
GetItems
(ItemType).Where(pi => pi.IsImported);
632
IEnumerable<ProjectItem> items = project.
GetItems
(ItemType).Where(pi => !pi.IsImported);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (1)
80
=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.
GetItems
(itemType));
Microsoft.Build.Engine.UnitTests (73)
Definition\ItemDefinitionGroup_Tests.cs (38)
1462
Assert.Equal("m1", p.
GetItems
("j").First().GetMetadataValue("m"));
1520
Assert.Equal("im1", p.
GetItems
("i").First().GetMetadataValue("m"));
1521
Assert.Equal("in1", p.
GetItems
("i").First().GetMetadataValue("n"));
1522
Assert.Equal("io2", p.
GetItems
("i").First().GetMetadataValue("o"));
1523
Assert.Equal("ip1", p.
GetItems
("i").First().GetMetadataValue("p"));
1524
Assert.Equal("", p.
GetItems
("i").First().GetMetadataValue("q"));
1526
Assert.Equal("jm3", p.
GetItems
("j").First().GetMetadataValue("m"));
1527
Assert.Equal("jn3", p.
GetItems
("j").First().GetMetadataValue("n"));
1528
Assert.Equal("", p.
GetItems
("j").First().GetMetadataValue("o"));
1529
Assert.Equal("", p.
GetItems
("j").First().GetMetadataValue("p"));
1530
Assert.Equal("jq3", p.
GetItems
("j").First().GetMetadataValue("q"));
1532
Assert.Equal("jm6", p.
GetItems
("j").ElementAt(1).GetMetadataValue("m"));
1533
Assert.Equal("in1", p.
GetItems
("j").ElementAt(1).GetMetadataValue("n"));
1534
Assert.Equal("io2", p.
GetItems
("j").ElementAt(1).GetMetadataValue("o"));
1535
Assert.Equal("ip1", p.
GetItems
("j").ElementAt(1).GetMetadataValue("p"));
1536
Assert.Equal("jq3", p.
GetItems
("j").ElementAt(1).GetMetadataValue("q"));
1538
Assert.Equal("km5", p.
GetItems
("k").ElementAt(0).GetMetadataValue("m"));
1539
Assert.Equal("", p.
GetItems
("k").ElementAt(0).GetMetadataValue("n"));
1540
Assert.Equal("", p.
GetItems
("k").ElementAt(0).GetMetadataValue("o"));
1541
Assert.Equal("", p.
GetItems
("k").ElementAt(0).GetMetadataValue("p"));
1542
Assert.Equal("kq4", p.
GetItems
("k").ElementAt(0).GetMetadataValue("q"));
1543
Assert.Equal("kr4", p.
GetItems
("k").ElementAt(0).GetMetadataValue("r"));
1544
Assert.Equal("", p.
GetItems
("k").ElementAt(0).GetMetadataValue("s"));
1546
Assert.Equal("jm3", p.
GetItems
("k").ElementAt(1).GetMetadataValue("m"));
1547
Assert.Equal("jn3", p.
GetItems
("k").ElementAt(1).GetMetadataValue("n"));
1548
Assert.Equal("", p.
GetItems
("k").ElementAt(1).GetMetadataValue("o"));
1549
Assert.Equal("", p.
GetItems
("k").ElementAt(1).GetMetadataValue("p"));
1550
Assert.Equal("jq3", p.
GetItems
("k").ElementAt(1).GetMetadataValue("q"));
1551
Assert.Equal("kr4", p.
GetItems
("k").ElementAt(1).GetMetadataValue("r"));
1552
Assert.Equal("ks3", p.
GetItems
("k").ElementAt(1).GetMetadataValue("s"));
1554
Assert.Equal("jm6", p.
GetItems
("k").ElementAt(2).GetMetadataValue("m"));
1555
Assert.Equal("in1", p.
GetItems
("k").ElementAt(2).GetMetadataValue("n"));
1556
Assert.Equal("io2", p.
GetItems
("k").ElementAt(2).GetMetadataValue("o"));
1557
Assert.Equal("ip1", p.
GetItems
("k").ElementAt(2).GetMetadataValue("p"));
1558
Assert.Equal("jq3", p.
GetItems
("k").ElementAt(2).GetMetadataValue("q"));
1559
Assert.Equal("kr4", p.
GetItems
("k").ElementAt(2).GetMetadataValue("r"));
1560
Assert.Equal("ks3", p.
GetItems
("k").ElementAt(1).GetMetadataValue("s"));
1866
foreach (ProjectItem item in project.
GetItems
(itemType))
Definition\ProjectEvaluationContext_Tests.cs (7)
390
ObjectModelHelpers.AssertItems(expectedGlobExpansion, project.
GetItems
("i"));
468
ObjectModelHelpers.AssertItems(expectedGlobExpansion, project.
GetItems
("i"));
524
var actualGlobExpansion = project.
GetItems
("i");
595
var actualGlobExpansion = project.
GetItems
("i");
655
var actualGlobExpansion = project.
GetItems
("i");
738
ObjectModelHelpers.AssertItems(expectedGlobExpansion, project.
GetItems
("i"));
775
ObjectModelHelpers.AssertItems(expectedGlobExpansion, project.
GetItems
("i"));
Definition\ProjectItem_Tests.cs (1)
84
IList<ProjectItem> item = Helpers.MakeList(project.
GetItems
("i"));
EscapingInProjects_Tests.cs (4)
834
ProjectItem item = project.
GetItems
("None").Single();
880
IEnumerable<ProjectItem> items = project.
GetItems
("DifferentList");
912
IEnumerable<ProjectItem> items = project.
GetItems
("DifferentList");
1820
IEnumerable<ProjectItem> itemsToMatch = project.
GetItems
(itemType);
Evaluation\Evaluator_Tests.cs (10)
1586
ProjectMetadata metadatum = project.
GetItems
("i").ElementAt(0).GetMetadata("m");
1625
ProjectMetadata metadatum = project.
GetItems
("i").ElementAt(1).GetMetadata("m");
1657
ProjectMetadata metadatum = project.
GetItems
("i").ElementAt(0).GetMetadata("m");
1689
Assert.Collection(project.
GetItems
("i"), item =>
1729
Assert.Empty(project.
GetItems
("i"));
1754
ProjectMetadata metadatum = project.
GetItems
("i").ElementAt(0).GetMetadata("m");
1779
Assert.Collection(project.
GetItems
("i"), item =>
1810
Assert.Empty(project.
GetItems
("i"));
1848
ProjectMetadata predecessor = project.
GetItems
("i").ElementAt(0).GetMetadata("m").Predecessor;
1887
Assert.Null(project.
GetItems
("j").ElementAt(0).GetMetadata("m").Predecessor);
Evaluation\SdkResultEvaluation_Tests.cs (10)
81
var itemsFromResolver = project.
GetItems
("ItemNameFromSdkResolver");
91
project.
GetItems
("ItemNameFromSdkResolver").ShouldBeEmpty();
220
project.
GetItems
("ItemsFromSdkResolverBefore").ShouldBeEmpty();
223
var items = project.
GetItems
("ItemsFromSdkResolverAfter");
229
project.
GetItems
("ItemsFromSdkResolverAfter").ShouldBeEmpty();
320
project.
GetItems
("ItemsFromSdkResolverBefore").ShouldBeEmpty();
323
var items = project.
GetItems
("ItemsFromSdkResolverAfter");
329
project.
GetItems
("ItemsFromSdkResolverAfter").ShouldBeEmpty();
402
var itemsFromBody = project.
GetItems
("ItemsFromSdkResolverInProjectBody");
454
var itemsFromResolver = project.
GetItems
("ItemName");
Graph\ResultCacheBasedBuilds_Tests.cs (2)
153
project.RemoveItems(project.
GetItems
("i"));
316
project.RemoveItems(project.
GetItems
("i"));
Parser_Tests.cs (1)
579
var projectItem = project.
GetItems
("A").FirstOrDefault();
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
108
ProjectItem[] items = p.
GetItems
(type).ToArray();
1107
(allItems ? project.Items : project.
GetItems
("i")));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
MSBuild\ProjectFile\ProjectFile.cs (5)
312
foreach (var item in _loadedProject.
GetItems
(ItemNames.Compile))
391
var items = _loadedProject.
GetItems
(ItemNames.Compile);
435
var references = _loadedProject.
GetItems
(ItemNames.Reference);
516
var references = _loadedProject.
GetItems
(ItemNames.ProjectReference);
551
var analyzers = _loadedProject.
GetItems
(ItemNames.Analyzer);
MSBuild (1)
JsonOutputFormatter.cs (1)
95
foreach (ProjectItem item in project.
GetItems
(itemName))