Implemented interface member:
property
Items
Microsoft.Build.Execution.ITargetResult.Items
78 references to Items
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
1233
ITaskItem[] clonedTaskItem = new ITaskItem[resultEntry.Value.
Items
.Length];
1234
for (int j = 0; j < resultEntry.Value.
Items
.Length; j++)
1236
clonedTaskItem[j] = ((TaskItem)resultEntry.Value.
Items
[j]).DeepClone();
Microsoft.Build.Engine.UnitTests (63)
BackEnd\BuildManager_Tests.cs (4)
450
ITaskItem[] item = targetresult.
Items
;
3725
Assert.Equal("InitialValue", results.ResultsByTarget["BuildOther"].
Items
.First().ItemSpec);
3747
Assert.Equal(newPropertyValue, results.ResultsByTarget["Foo"].
Items
.First().ItemSpec);
3811
string.Join(";", result.ResultsByTarget["MainTarget"].
Items
.Select(i => i.ItemSpec)));
BackEnd\MSBuild_Tests.cs (20)
160
Assert.Equal(7, targetOutputs["Build"].
Items
.Length);
161
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
569
Assert.Equal(4, targetOutputs["Build"].
Items
.Length);
570
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
636
Assert.Equal(2, targetOutputs["Build"].
Items
.Length);
637
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
942
Assert.Single(targetOutputs["Build"].
Items
);
943
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
1064
Assert.Equal(3, targetOutputs["Build"].
Items
.Length);
1065
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
1133
Assert.Equal(3, targetOutputs["Build"].
Items
.Length);
1134
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
1199
Assert.Equal(2, targetOutputs["Build"].
Items
.Length);
1200
ObjectModelHelpers.AssertItemsMatch(expectedItemOutputs, targetOutputs["Build"].
Items
, false /* order of items not enforced */);
1809
Assert.Equal(5, targetOutputs["Build"].
Items
.Length);
1810
Assert.Equal("|a", targetOutputs["Build"].
Items
[0].ItemSpec);
1811
Assert.Equal("A|b", targetOutputs["Build"].
Items
[1].ItemSpec);
1812
Assert.Equal("B|c", targetOutputs["Build"].
Items
[2].ItemSpec);
1813
Assert.Equal("C|d", targetOutputs["Build"].
Items
[3].ItemSpec);
1814
Assert.Equal("D|", targetOutputs["Build"].
Items
[4].ItemSpec);
BackEnd\SdkResultOutOfProc_Tests.cs (2)
186
ITaskItem[] item = targetresult.
Items
;
201
return targetresult.
Items
.Where(i => i.GetMetadata("Type").Equals(type, StringComparison.OrdinalIgnoreCase))
BackEnd\TargetEntry_Tests.cs (16)
364
Assert.Empty(results.
Items
);
381
Assert.Empty(results.
Items
);
385
Assert.Single(results.
Items
);
386
Assert.Equal("foo.o", results.
Items
[0].ItemSpec);
401
Assert.Empty(results.
Items
);
405
Assert.Single(results.
Items
);
406
Assert.Equal("testProject.proj", results.
Items
[0].ItemSpec);
474
Assert.Empty(results.
Items
);
478
Assert.Equal(2, results.
Items
.Length);
497
Assert.Equal(3, results.
Items
.Length);
515
Assert.Equal(3, results.
Items
.Length);
535
Assert.Single(results.
Items
);
556
Assert.Equal(2, results.
Items
.Length);
577
Assert.Single(results.
Items
);
598
Assert.Single(results.
Items
);
619
Assert.Equal(4, results.
Items
.Length);
BackEnd\TargetResult_Tests.cs (9)
29
Assert.Empty(result.
Items
);
42
Assert.Single(result.
Items
);
43
Assert.Equal(item.ItemSpec, result.
Items
[0].ItemSpec);
66
Assert.Single(result.
Items
);
80
Assert.Single(result.
Items
);
104
Assert.True(TranslationHelpers.CompareCollections(result.
Items
, deserializedResult.
Items
, TaskItemComparer.Instance));
124
Assert.True(TranslationHelpers.CompareCollections(result.
Items
, deserializedResult.
Items
, TaskItemComparer.Instance));
BackEnd\TaskHost_Tests.cs (1)
106
TaskItem mockItemInCache = _mockRequestCallback.BuildResultsToReturn[0].ResultsByTarget["Build"].
Items
[0] as TaskItem;
Graph\ResultCacheBasedBuilds_Tests.cs (7)
140
result.ResultsByTarget["Build"].
Items
.Length.ShouldBe(1);
141
result.ResultsByTarget["Build"].
Items
.First()
160
result.ResultsByTarget["Build"].
Items
.ShouldBeEmpty();
172
resultFromCachedBuild.ResultsByTarget["Build"].
Items
.Length.ShouldBe(1);
173
resultFromCachedBuild.ResultsByTarget["Build"].
Items
.First().ItemSpec.ShouldBe("1");
363
rootNodeBuildResult.ResultsByTarget["Build"].
Items
.Select(i => i.ItemSpec).ToArray().ShouldBe(expectedOutput[rootNode]);
482
var actualOutput = result.ResultsByTarget["Build"].
Items
.Select(i => i.ItemSpec).ToArray();
InternalEngineHelpers.cs (2)
179
TranslationHelpers.CompareCollections(a.
Items
, b.
Items
, TaskItemComparer.Instance).ShouldBeTrue();
ProjectCache\ProjectCacheTests.cs (2)
848
targetResult.
Items
.ShouldHaveSingleItem();
849
var itemResult = targetResult.
Items
.First();
Microsoft.Build.Tasks.UnitTests (10)
CreateItem_Tests.cs (1)
218
result.ResultsByTarget["Repro"].
Items
[0].GetMetadata("RecursiveDir").ShouldBe("Subdir" + Path.DirectorySeparatorChar);
ResolveSDKReference_Tests.cs (9)
3821
ITaskItem[] resolvedSDKReferences = result.
Items
;
3830
ITaskItem[] SDkRedistFolders = result.
Items
;
3964
ITaskItem[] resolvedSDKReferences = result.
Items
;
3973
ITaskItem[] SDkRedistFolders = result.
Items
;
4073
ITaskItem[] resolvedSDKReferences = result.
Items
;
4082
ITaskItem[] SDkRedistFolders = result.
Items
;
4170
ITaskItem[] resolvedSDKReferences = result.
Items
;
4181
ITaskItem[] SDkRedistFolders = result.
Items
;
4340
return result.
Items
;
Microsoft.Build.UnitTests.Shared (1)
MockEngine.cs (1)
324
targetOutputsPerProject[i][resultEntry.Key] = resultEntry.Value.
Items
;
MSBuild (1)
JsonOutputFormatter.cs (1)
139
foreach (ITaskItem item in targetResult.
Items
)