83 references to GetItems
Microsoft.Build (8)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
178ICollection<ProjectItemInstance> items = projectInstance.GetItems(ItemTypeNames.ProjectCachePlugin);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
1028var projectReferenceItems = _buildRequestEntry.RequestConfiguration.Project.GetItems(ItemTypeNames.ProjectReference);
BackEnd\Shared\BuildRequestConfiguration.cs (1)
831var items = Project.GetItems(ItemTypeNames.GraphIsolationExemptReference);
Graph\ProjectInterpretation.cs (3)
91projectReferenceItems = requesterInstance.GetItems(ItemTypeNames.ProjectReference); 95projectReferenceItems = requesterInstance.GetItems(ItemTypeNames.ProjectReference); 497ICollection<ProjectItemInstance> projectReferenceTargets = project.GetItems(ItemTypeNames.ProjectReferenceTargets);
Instance\ProjectInstance.cs (2)
815foreach (var actualItem in that.GetItems(itemFilter.Key)) 2001foreach (var item in GetItems(itemType))
Microsoft.Build.Engine.OM.UnitTests (28)
Definition\DefinitionEditing_Tests.cs (7)
168Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 195Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 1313Assert.Empty(Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))); 1884Assert.Equal("m1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 1912Assert.Equal("m1$$", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].GetMetadataValue("m")); 2092Assert.Equal("i1", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude); 2119Assert.Equal("i(1)", Helpers.MakeList(project.CreateProjectInstance().GetItems("i"))[0].EvaluatedInclude);
Definition\Project_Tests.cs (5)
686projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj\i386\foo.dll")); 691projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(Directory.GetCurrentDirectory(), @"obj/i386/foo.dll")); 722projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 758projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory, "obj", "i386").Substring(RootPrefixLength) + Path.DirectorySeparatorChar); 797projectInstance.GetItems("BuiltProjectOutputGroupKeyOutput").First().EvaluatedInclude.ShouldBe(Path.Combine(FileUtilities.TempFileDirectory /* remove c:\ */, "obj", "i386"));
Definition\ProjectItemDefinition_Tests.cs (2)
459ProjectItemInstance item1 = instance.GetItems("i").ElementAt(0); 462ProjectItemInstance item2 = instance.GetItems("i").ElementAt(1);
Instance\ProjectInstance_Tests.cs (13)
66IList<ProjectItemInstance> items = Helpers.MakeList(p.GetItems("i")); 135Assert.True(object.ReferenceEquals(returned, Helpers.MakeList(p.GetItems("i"))[0])); 265Assert.Single(Helpers.MakeList(project.GetItems("j"))); 266Assert.Equal("i1", Helpers.MakeList(project.GetItems("j"))[0].EvaluatedInclude); 267Assert.Equal("m1", Helpers.MakeList(project.GetItems("j"))[0].GetMetadataValue("m")); 268Assert.Equal("n;;", Helpers.MakeList(project.GetItems("j"))[0].GetMetadataValue("n")); 309Assert.Equal(2, Helpers.MakeList(projectInstance.GetItems("i")).Count); 310Assert.Equal(file1, Helpers.MakeList(projectInstance.GetItems("i"))[0].EvaluatedInclude); 311Assert.Equal(file2, Helpers.MakeList(projectInstance.GetItems("i"))[1].EvaluatedInclude); 331Assert.False(Object.ReferenceEquals(Helpers.MakeList(first.GetItems("i"))[0], Helpers.MakeList(second.GetItems("i"))[0])); 334Assert.Equal(4, Helpers.MakeList(first.GetItems("i")).Count); 335Assert.Equal(3, Helpers.MakeList(second.GetItems("i")).Count);
Instance\ProjectItemInstance_Tests.cs (1)
1174return Helpers.MakeList(project.GetItems("i"));
Microsoft.Build.Engine.UnitTests (18)
BackEnd\BuildManager_Tests.cs (6)
531result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").ShouldHaveSingleItem(); 532result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").First().DirectMetadataCount.ShouldBe(1); 533result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").First().GetMetadataValue("Metadatum1") 535result.ProjectStateAfterBuild.GetItems("ItemWithMetadata").First().GetMetadataValue("Metadatum2") 538result.ProjectStateAfterBuild.GetItems("AnItem").Count.ShouldBe(3); 539result.ProjectStateAfterBuild.GetItems("AnItem").ShouldContain(p => p.EvaluatedInclude == "Item2");
BackEnd\IntrinsicTask_Tests.cs (2)
3546Assert.Equal("gen.obj", instance.GetItems("CppCompile").First().GetMetadataValue("ObjectFile")); 3547Assert.Equal("def.obj", instance.GetItems("CppCompile").Last().GetMetadataValue("ObjectFile"));
Construction\SolutionProjectGenerator_Tests.cs (3)
1906Assert.Contains("%abtest", instances[0].GetItems("ProjectReference").ElementAt(0).EvaluatedInclude); 2851IEnumerable<ProjectItemInstance> itemGroup = msbuildProject.GetItems(itemType); 2871IEnumerable<ProjectItemInstance> itemGroup = msbuildProject.GetItems(itemType);
Definition\ItemDefinitionGroup_Tests.cs (1)
683foreach (ProjectItemInstance item in pi.GetItems("ItemA"))
EscapingInProjects_Tests.cs (1)
653IEnumerable<ProjectItemInstance> items = projectInstance.GetItems("ProjectFile");
Evaluation\Expander_Tests.cs (5)
4799ICollection<ProjectItemInstance> myDirectories = projectInstance.GetItems("MyDirectories"); 4843ICollection<ProjectItemInstance> myDirectories = projectInstance.GetItems("MyDirectories"); 4872ICollection<ProjectItemInstance> squiggles = projectInstance.GetItems("Squiggle"); 4919ICollection<ProjectItemInstance> squiggleItems = projectInstance.GetItems("Compile"); 4960ICollection<ProjectItemInstance> squiggleItems = projectInstance.GetItems("MyDirectory");
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (13)
TargetTests.cs (13)
165var items = instance.GetItems("_GeneratedEditorConfigProperty"); 198var items = instance.GetItems("_GeneratedEditorConfigProperty"); 227var items = instance.GetItems("_GeneratedEditorConfigProperty"); 259var items = instance.GetItems("_GeneratedEditorConfigMetadata"); 301var items = instance.GetItems("_GeneratedEditorConfigMetadata"); 341var items = instance.GetItems("_GeneratedEditorConfigMetadata"); 376var items = instance.GetItems("_GeneratedEditorConfigMetadata"); 538var items = instance.GetItems("EditorConfigFiles"); 561var noneItems = instance.GetItems("None").ToArray(); 830var items = instance.GetItems("CustomAdditionalCompileInputs"); 839items = instance.GetItems("UpToDateCheckInput"); 876var caps = instance.GetItems("ProjectCapability").Select(c => c.EvaluatedInclude); 894var caps = instance.GetItems("ProjectCapability").Select(c => c.EvaluatedInclude);
Microsoft.Build.Tasks.UnitTests (1)
CallTarget_Tests.cs (1)
180IEnumerable<ProjectItemInstance> targetOutputs = instance.GetItems("myfancytargetoutputs");
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (14)
MSBuild\CSharp\CSharpProjectFile.cs (1)
19=> executedProject.GetItems(ItemNames.CscCommandLineArgs);
MSBuild\ProjectFile\Extensions.cs (9)
17=> executedProject.GetItems(ItemNames.AdditionalFiles); 20=> executedProject.GetItems(ItemNames.Analyzer); 23=> executedProject.GetItems(ItemNames.Compile); 26=> executedProject.GetItems(ItemNames.EditorConfigFiles); 29=> executedProject.GetItems(ItemNames.ReferencePath); 33.GetItems(ItemNames.ProjectReference) 38var packageReferenceItems = executedProject.GetItems(ItemNames.PackageReference); 96foreach (var item in executedProject.GetItems(itemType)) 110=> executedProject.GetItems(itemType);
MSBuild\ProjectFile\ProjectFile.cs (3)
139var intermediateOutputFilePath = project.GetItems(ItemNames.IntermediateAssembly).FirstOrDefault()?.EvaluatedInclude; 179var projectCapabilities = project.GetItems(ItemNames.ProjectCapability).SelectAsArray(item => item.ToString()); 217.GetItems(ItemNames.Content)
MSBuild\VisualBasic\VisualBasicProjectFile.cs (1)
19=> executedProject.GetItems(ItemNames.VbcCommandLineArgs);
MSBuild (1)
JsonOutputFormatter.cs (1)
59foreach (ProjectItemInstance item in project.GetItems(itemName))