22 references to Failed
Microsoft.Build (17)
BackEnd\Components\ProjectCache\CacheResult.cs (1)
128
: new WorkUnitResult(WorkUnitResultCode.
Failed
, WorkUnitActionCode.Stop, null);
BackEnd\Components\RequestBuilder\TargetEntry.cs (6)
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));
834
if (lastResult.ResultCode == WorkUnitResultCode.
Failed
)
836
aggregatedTaskResult = WorkUnitResultCode.
Failed
;
838
else if (lastResult.ResultCode == WorkUnitResultCode.Success && aggregatedTaskResult != WorkUnitResultCode.
Failed
)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (8)
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);
406
taskResult = new WorkUnitResult(WorkUnitResultCode.
Failed
, WorkUnitActionCode.Stop, e);
471
taskResult = new WorkUnitResult(WorkUnitResultCode.
Failed
, WorkUnitActionCode.Stop, e);
480
if (taskResult.ResultCode == WorkUnitResultCode.
Failed
&& _continueOnError == ContinueOnError.WarnAndContinue)
986
resultCode = taskResult ? WorkUnitResultCode.Success : WorkUnitResultCode.
Failed
;
988
if (resultCode == WorkUnitResultCode.
Failed
)
BackEnd\Shared\TargetResult.cs (1)
124
case WorkUnitResultCode.
Failed
:
BackEnd\Shared\WorkUnitResult.cs (1)
157
if (result._resultCode == WorkUnitResultCode.Canceled || result.ResultCode == WorkUnitResultCode.
Failed
)
Microsoft.Build.Engine.UnitTests (5)
BackEnd\MockTaskBuilder.cs (2)
120
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.
Failed
, WorkUnitActionCode.Continue, null));
123
return Task<WorkUnitResult>.FromResult(new WorkUnitResult(WorkUnitResultCode.
Failed
, WorkUnitActionCode.Stop, null));
BuildResultUtilities.cs (3)
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);