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