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