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