87 references to AddResultsForTarget
Microsoft.Build (5)
BackEnd\BuildManager\BuildManager.cs (1)
2311result.AddResultsForTarget(cacheResultInner.Key, cacheResultInner.Value);
BackEnd\Components\ProjectCache\CacheResult.cs (1)
114buildResult.AddResultsForTarget(
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
1246cachedResult.AddResultsForTarget( 1251resultFromTargetBuilder.AddResultsForTarget(
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
524_buildResult.AddResultsForTarget(currentTargetEntry.Name, targetResult);
Microsoft.Build.Engine.UnitTests (82)
BackEnd\BuildRequestEngine_Tests.cs (3)
163result.AddResultsForTarget(target, new TargetResult(new TaskItem[1] { new TaskItem("include", _entry.RequestConfiguration.ProjectFullPath) }, completeSuccess ? BuildResultUtilities.GetSuccessResult() : BuildResultUtilities.GetStopWithErrorResult())); 426result.AddResultsForTarget("requiredTarget1", BuildResultUtilities.GetEmptySucceedingTargetResult()); 491result.AddResultsForTarget("requiredTarget1", BuildResultUtilities.GetEmptySucceedingTargetResult());
BackEnd\BuildRequestEntry_Tests.cs (11)
66requiredResult.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 82result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 106requiredResult.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 131requiredResult1.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 136requiredResult2.AddResultsForTarget("xor", BuildResultUtilities.GetEmptySucceedingTargetResult()); 166requiredResult1.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 171requiredResult2.AddResultsForTarget("xor", BuildResultUtilities.GetEmptySucceedingTargetResult()); 204requiredResult.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 228requiredResult.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 247requiredResult.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 272requiredResult.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult());
BackEnd\BuildResult_Tests.cs (22)
98result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 101result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, new Exception()))); 104result.AddResultsForTarget("baz", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new Exception()))); 109result2.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 110result2.AddResultsForTarget("bar", BuildResultUtilities.GetEmptyFailingTargetResult()); 127result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 128result.AddResultsForTarget("bar", BuildResultUtilities.GetEmptyFailingTargetResult()); 152result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 164result.AddResultsForTarget(null!, BuildResultUtilities.GetEmptySucceedingTargetResult()); 175result.AddResultsForTarget("foo", null!); 186result.AddResultsForTarget(null!, BuildResultUtilities.GetEmptySucceedingTargetResult()); 194result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 197result.AddResultsForTarget("bar", BuildResultUtilities.GetEmptyFailingTargetResult()); 207result4.AddResultsForTarget("xor", BuildResultUtilities.GetEmptySucceedingTargetResult()); 221result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 234result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 238result2.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 248result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 262result.AddResultsForTarget("foo", BuildResultUtilities.GetEmptySucceedingTargetResult()); 281result.AddResultsForTarget("bar", BuildResultUtilities.GetEmptySucceedingTargetResult()); 323result.AddResultsForTarget("alpha", new TargetResult(new TaskItem[] { fooTaskItem }, BuildResultUtilities.GetSuccessResult())); 324result.AddResultsForTarget("omega", new TargetResult(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult(new ArgumentException("The argument was invalid"))));
BackEnd\CacheAggregator_Tests.cs (11)
83buildResult.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 104buildResult.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 109buildResult2.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 133buildResult.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 155buildResult11.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 163buildResult21.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 199buildResult.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 218buildResult11.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 220buildResult12.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 230buildResult21.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult()); 232buildResult22.AddResultsForTarget("a", GetNonEmptySucceedingTargetResult());
BackEnd\CacheSerialization_Tests.cs (5)
52buildResult1.AddResultsForTarget( 57buildResult1.AddResultsForTarget( 62buildResult1.AddResultsForTarget( 68buildResult2.AddResultsForTarget( 74buildResult3.AddResultsForTarget(
BackEnd\RequestBuilder_Tests.cs (8)
91result.AddResultsForTarget("target1", GetEmptySuccessfulTargetResult()); 121result.AddResultsForTarget("target1", GetEmptySuccessfulTargetResult()); 155result.AddResultsForTarget("target1", GetEmptySuccessfulTargetResult()); 164newResult.AddResultsForTarget("testTarget2", GetEmptySuccessfulTargetResult()); 194result.AddResultsForTarget("target1", GetEmptySuccessfulTargetResult()); 203newResult.AddResultsForTarget("testTarget2", GetEmptySuccessfulTargetResult()); 368result.AddResultsForTarget(target.name, BuildResultUtilities.GetEmptyFailingTargetResult()); 393result.AddResultsForTarget(target.name, BuildResultUtilities.GetEmptyFailingTargetResult());
BackEnd\ResultsCache_Tests.cs (20)
37result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 51result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 56result.AddResultsForTarget("otherTarget", BuildResultUtilities.GetEmptySucceedingTargetResult()); 71result.AddResultsForTarget("result1target1", BuildResultUtilities.GetEmptyFailingTargetResult()); 76result.AddResultsForTarget("result1target2", BuildResultUtilities.GetEmptySucceedingTargetResult()); 80result2.AddResultsForTarget("result2target1", BuildResultUtilities.GetEmptyFailingTargetResult()); 108result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 112result2.AddResultsForTarget("testTarget2", BuildResultUtilities.GetEmptySucceedingTargetResult()); 127result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 146result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 158result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 162result2.AddResultsForTarget("testTarget2", BuildResultUtilities.GetEmptySucceedingTargetResult()); 182result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 183result.AddResultsForTarget("testTarget2", BuildResultUtilities.GetEmptySucceedingTargetResult()); 234resultForRequestWithNoBuildDataFlags.AddResultsForTarget(targetName, BuildResultUtilities.GetEmptySucceedingTargetResult()); 303resultForRequestWithSubsetFlag1.AddResultsForTarget(targetName, BuildResultUtilities.GetEmptySucceedingTargetResult()); 350result.AddResultsForTarget("testTarget", BuildResultUtilities.GetEmptyFailingTargetResult()); 368br1.AddResultsForTarget("target1", BuildResultUtilities.GetEmptySucceedingTargetResult()); 376br2.AddResultsForTarget("target2", BuildResultUtilities.GetEmptyFailingTargetResult()); 415br2.AddResultsForTarget("target2", BuildResultUtilities.GetEmptyFailingTargetResult());
BackEnd\Scheduler_Tests.cs (1)
777result.AddResultsForTarget(target, new TargetResult(Array.Empty<TaskItem>(), workUnitResult));
BackEnd\TaskHost_Tests.cs (1)
83buildResult.AddResultsForTarget("Build", new TargetResult(new TaskItem[] { new TaskItem("IamSuper", configuration.ProjectFullPath) }, BuildResultUtilities.GetSkippedResult()));