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