Implemented interface member:
property
ResultsByTarget
Microsoft.Build.BackEnd.IBuildResults.ResultsByTarget
64 references to ResultsByTarget
Microsoft.Build (8)
BackEnd\BuildManager\BuildManager.cs (1)
2303
foreach (var cacheResultInner in cacheResult.BuildResult?.
ResultsByTarget
?? Enumerable.Empty<KeyValuePair<string, TargetResult>>())
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
740
List<string> targets = buildResult.
ResultsByTarget
?.Keys.ToList() ?? new();
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1243
var proxyTargetResult = resultFromTargetBuilder.
ResultsByTarget
[proxyTarget];
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
784
if (_buildResult.
ResultsByTarget
.TryGetValue(targetName.name, out TargetResult targetBuildResult))
801
_buildResult.
ResultsByTarget
.TryGetValue(afterTarget.TargetName, out TargetResult result);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1226
foreach (KeyValuePair<string, TargetResult> resultEntry in results[i].
ResultsByTarget
)
BackEnd\Shared\BuildResult.cs (1)
765
if (existingResults.
ResultsByTarget
?.TryGetValue(target, out TargetResult? targetResult) ?? false)
Instance\ProjectInstance.cs (1)
2723
targetOutputs = results.
ResultsByTarget
;
Microsoft.Build.Engine.UnitTests (54)
BackEnd\BuildManager_Tests.cs (6)
449
TargetResult targetresult = result.
ResultsByTarget
["test"];
3483
Assert.Equal(TargetResultCode.Success, buildResult.
ResultsByTarget
["target1"].ResultCode);
3484
Assert.Equal(TargetResultCode.Success, buildResult.
ResultsByTarget
["target2"].ResultCode);
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\BuildResult_Tests.cs (12)
40
result1.
ResultsByTarget
?.Add("FOO", BuildResultUtilities.GetEmptySucceedingTargetResult());
41
Assert.True(result1.
ResultsByTarget
?.ContainsKey("foo")); // test comparer
45
result1.
ResultsByTarget
?.Add("BAR", BuildResultUtilities.GetEmptySucceedingTargetResult());
46
Assert.True(result1.
ResultsByTarget
?.ContainsKey("foo")); // test comparer
47
Assert.True(result1.
ResultsByTarget
?.ContainsKey("bar"));
55
Assert.Equal(result1.
ResultsByTarget
?["foo"], result2.
ResultsByTarget
?["foo"]);
259
int countFound = result.
ResultsByTarget
?.Count ?? 0;
265
if (result.
ResultsByTarget
!= null)
267
foreach (KeyValuePair<string, TargetResult> resultPair in result.
ResultsByTarget
)
285
if (result.
ResultsByTarget
!= null)
287
foreach (KeyValuePair<string, TargetResult> resultPair in result.
ResultsByTarget
)
BackEnd\ResultsCache_Tests.cs (7)
444
copiedBuildResult.
ResultsByTarget
.Keys.ToHashSet().SetEquals(initialBuildResult.
ResultsByTarget
.Keys.ToHashSet()).ShouldBeTrue();
446
foreach (var targetKey in copiedBuildResult.
ResultsByTarget
.Keys)
448
var copiedTargetResult = copiedBuildResult.
ResultsByTarget
[targetKey];
449
var initialTargetResult = initialBuildResult.
ResultsByTarget
[targetKey];
484
foreach (KeyValuePair<string, TargetResult> targetResult in a.
ResultsByTarget
)
492
foreach (KeyValuePair<string, TargetResult> targetResult in b.
ResultsByTarget
)
BackEnd\SdkResultOutOfProc_Tests.cs (2)
185
TargetResult targetresult = result.
ResultsByTarget
["GetCurrentProcessId"];
197
TargetResult targetresult = result.
ResultsByTarget
["GetResolverResults"];
BackEnd\TargetBuilder_Tests.cs (14)
778
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
805
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
835
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
879
Assert.False(result.
ResultsByTarget
["PostBuild"].AfterTargetsHaveFailed);
906
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
933
Assert.False(result.
ResultsByTarget
["Build;Me"].AfterTargetsHaveFailed);
965
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
985
result.
ResultsByTarget
["Build"].ResultCode.ShouldBe(TargetResultCode.Success);
986
result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed.ShouldBe(true);
1010
result.
ResultsByTarget
["Build"].ResultCode.ShouldBe(TargetResultCode.Success);
1011
result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed.ShouldBe(true);
1029
result.
ResultsByTarget
["Build"].ResultCode.ShouldBe(TargetResultCode.Success);
1030
result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed.ShouldBe(false);
1251
Assert.False(result.
ResultsByTarget
["Build"].AfterTargetsHaveFailed);
BackEnd\TargetEntry_Tests.cs (1)
887
Assert.Equal(TargetResultCode.Success, result.
ResultsByTarget
["Build"].ResultCode);
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)
166
actualBuildResult.
ResultsByTarget
,
167
expectedBuildResult.
ResultsByTarget
,
ProjectCache\ProjectCacheTests.cs (2)
846
var targetResult = buildResult.
ResultsByTarget
!["Build"];
854
var proxyTargetResult = buildResult.
ResultsByTarget
["ProxyBuild"];
Microsoft.Build.Tasks.UnitTests (1)
CreateItem_Tests.cs (1)
218
result.
ResultsByTarget
["Repro"].Items[0].GetMetadata("RecursiveDir").ShouldBe("Subdir" + Path.DirectorySeparatorChar);
MSBuild (1)
JsonOutputFormatter.cs (1)
135
TargetResult targetResult = result.
ResultsByTarget
![targetName];