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