68 references to WorkUnitResultCode
Microsoft.Build (52)
BackEnd\Components\ProjectCache\CacheResult.cs (2)
127
? new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)
128
: new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
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 (17)
371
new WorkUnitResult(
WorkUnitResultCode
.Skipped, WorkUnitActionCode.Continue, null),
494
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(
WorkUnitResultCode
.Canceled, WorkUnitActionCode.Stop, null));
539
if (aggregateResult.ResultCode ==
WorkUnitResultCode
.Skipped)
541
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null));
556
targetSuccess = (bucketResult?.ResultCode ==
WorkUnitResultCode
.Success);
573
aggregateResult = aggregateResult.AggregateResult(new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null));
677
if (aggregateResult.ResultCode ==
WorkUnitResultCode
.Failed && aggregateResult.ActionCode == WorkUnitActionCode.Stop)
732
_targetResult = new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null));
815
WorkUnitResultCode
aggregatedTaskResult =
WorkUnitResultCode
.Success;
817
WorkUnitResult lastResult = new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null);
834
if (lastResult.ResultCode ==
WorkUnitResultCode
.Failed)
836
aggregatedTaskResult =
WorkUnitResultCode
.Failed;
838
else if (lastResult.ResultCode ==
WorkUnitResultCode
.Success && aggregatedTaskResult !=
WorkUnitResultCode
.Failed)
840
aggregatedTaskResult =
WorkUnitResultCode
.Success;
852
aggregatedTaskResult =
WorkUnitResultCode
.Canceled;
BackEnd\Components\RequestBuilder\TaskBuilder.cs (18)
178
WorkUnitResult taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
298
WorkUnitResult taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
373
WorkUnitResult taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
388
return new WorkUnitResult(
WorkUnitResultCode
.Skipped, WorkUnitActionCode.Continue, null);
398
taskResult = new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null);
406
taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, e);
471
taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, e);
478
taskLoggingContext.LogTaskBatchFinished(_projectFullPath, taskResult.ResultCode ==
WorkUnitResultCode
.Success || taskResult.ResultCode ==
WorkUnitResultCode
.Skipped);
480
if (taskResult.ResultCode ==
WorkUnitResultCode
.Failed && _continueOnError == ContinueOnError.WarnAndContinue)
483
taskResult = new WorkUnitResult(
WorkUnitResultCode
.Success, taskResult.ActionCode, taskResult.Exception);
510
taskResult = new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null);
556
WorkUnitResult taskResult = new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
743
WorkUnitResultCode
resultCode =
WorkUnitResultCode
.Success;
986
resultCode = taskResult ?
WorkUnitResultCode
.Success :
WorkUnitResultCode
.Failed;
988
if (resultCode ==
WorkUnitResultCode
.Failed)
BackEnd\Shared\TargetResult.cs (4)
123
case
WorkUnitResultCode
.Canceled:
124
case
WorkUnitResultCode
.Failed:
127
case
WorkUnitResultCode
.Skipped:
130
case
WorkUnitResultCode
.Success:
BackEnd\Shared\WorkUnitResult.cs (9)
60
private
WorkUnitResultCode
_resultCode;
77
_resultCode =
WorkUnitResultCode
.Skipped;
85
internal WorkUnitResult(
WorkUnitResultCode
resultCode, WorkUnitActionCode actionCode, Exception e)
103
internal
WorkUnitResultCode
ResultCode => _resultCode;
153
WorkUnitResultCode
aggregateResult = _resultCode;
157
if (result._resultCode ==
WorkUnitResultCode
.Canceled || result.ResultCode ==
WorkUnitResultCode
.Failed)
162
else if (result._resultCode ==
WorkUnitResultCode
.Success && aggregateResult ==
WorkUnitResultCode
.Skipped)
Microsoft.Build.Engine.UnitTests (16)
BackEnd\BuildResult_Tests.cs (1)
101
result.AddResultsForTarget("bar", new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, new Exception())));
BackEnd\CacheSerialization_Tests.cs (5)
56
new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)));
61
new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)));
66
new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)));
72
new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)));
78
new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null)));
BackEnd\MockTaskBuilder.cs (4)
87
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(
WorkUnitResultCode
.Canceled, WorkUnitActionCode.Stop, null));
120
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Continue, null));
123
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null));
127
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null));
BackEnd\RequestBuilder_Tests.cs (1)
323
return new TargetResult(Array.Empty<TaskItem>(), new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null));
BuildResultUtilities.cs (5)
32
return new WorkUnitResult(
WorkUnitResultCode
.Success, WorkUnitActionCode.Continue, null);
37
return new WorkUnitResult(
WorkUnitResultCode
.Skipped, WorkUnitActionCode.Continue, null);
42
return new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, null);
47
return new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Stop, e);
52
return new WorkUnitResult(
WorkUnitResultCode
.Failed, WorkUnitActionCode.Continue, null);