29 references to TargetResult
Microsoft.Build (6)
BackEnd\Components\ProjectCache\CacheResult.cs (1)
116
new
TargetResult
(
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
271
results[i] = new
TargetResult
(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null));
293
results[i] = new
TargetResult
(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Skipped, WorkUnitActionCode.Continue, null));
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
369
_targetResult = new
TargetResult
(
675
_targetResult = new
TargetResult
(targetOutputItems, aggregateResult, targetLoggingContext?.BuildEventContext);
732
_targetResult = new
TargetResult
(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Failed, WorkUnitActionCode.Stop, null));
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildRequestEngine_Tests.cs (1)
163
result.AddResultsForTarget(target, new
TargetResult
(new TaskItem[1] { new TaskItem("include", _entry.RequestConfiguration.ProjectFullPath) }, completeSuccess ? BuildResultUtilities.GetSuccessResult() : BuildResultUtilities.GetStopWithErrorResult()));
BackEnd\BuildResult_Tests.cs (4)
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())));
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\CacheSerialization_Tests.cs (5)
54
new
TargetResult
(
59
new
TargetResult
(
64
new
TargetResult
(
70
new
TargetResult
(
76
new
TargetResult
(
BackEnd\RequestBuilder_Tests.cs (1)
323
return new
TargetResult
(Array.Empty<TaskItem>(), new WorkUnitResult(WorkUnitResultCode.Success, WorkUnitActionCode.Continue, null));
BackEnd\Scheduler_Tests.cs (1)
777
result.AddResultsForTarget(target, new
TargetResult
(Array.Empty<TaskItem>(), workUnitResult));
BackEnd\TargetResult_Tests.cs (7)
28
TargetResult result = new
TargetResult
(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult());
41
TargetResult result = new
TargetResult
(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult());
55
TargetResult result = new
TargetResult
(null, BuildResultUtilities.GetStopWithErrorResult());
65
TargetResult result = new
TargetResult
(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult(new ArgumentException()));
79
TargetResult result = new
TargetResult
(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult());
95
TargetResult result = new
TargetResult
(
118
TargetResult result = new
TargetResult
(new TaskItem[] { item }, BuildResultUtilities.GetStopWithErrorResult(new BuildAbortedException()));
BackEnd\TaskHost_Tests.cs (1)
83
buildResult.AddResultsForTarget("Build", new
TargetResult
(new TaskItem[] { new TaskItem("IamSuper", configuration.ProjectFullPath) }, BuildResultUtilities.GetSkippedResult()));
BuildResultUtilities.cs (3)
17
return new
TargetResult
(Array.Empty<TaskItem>(), BuildResultUtilities.GetStopWithErrorResult());
22
return new
TargetResult
(Array.Empty<TaskItem>(), BuildResultUtilities.GetSuccessResult());
27
return new
TargetResult
(new TaskItem[1] { new TaskItem("i", "v") }, BuildResultUtilities.GetSuccessResult());