22 references to Failure
Microsoft.Build (9)
BackEnd\Components\Caching\ResultsCache.cs (1)
336
if (result[target].ResultCode == TargetResultCode.
Failure
&& (targetsMissingResults == null || targetsMissingResults.Count == 0))
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
103
bool isFailure = targetResult.ResultCode == TargetResultCode.
Failure
;
117
if (targetResult.ResultCode == TargetResultCode.
Failure
)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
286
if (results[i].ResultCode == TargetResultCode.
Failure
)
802
if (result?.ResultCode == TargetResultCode.
Failure
&& !result.TargetFailureDoesntCauseBuildFailure)
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
990
if (results[i].ResultCode == TargetResultCode.
Failure
)
1169
if (results[i].ResultCode == TargetResultCode.
Failure
)
BackEnd\Shared\BuildResult.cs (1)
385
if ((result.Value.ResultCode == TargetResultCode.
Failure
&& !result.Value.TargetFailureDoesntCauseBuildFailure)
BackEnd\Shared\TargetResult.cs (1)
125
return TargetResultCode.
Failure
;
Microsoft.Build.Engine.UnitTests (12)
BackEnd\BuildResult_Tests.cs (3)
131
Assert.Equal(TargetResultCode.
Failure
, result["bar"].ResultCode);
201
Assert.Equal(TargetResultCode.
Failure
, result["bar"].ResultCode);
210
Assert.Equal(TargetResultCode.
Failure
, result["bar"].ResultCode);
BackEnd\TargetBuilder_Tests.cs (4)
199
Assert.Equal(TargetResultCode.
Failure
, resultsCache.GetResultForRequest(entry.Request)["DepError"].ResultCode);
202
Assert.Equal(TargetResultCode.
Failure
, resultsCache.GetResultForRequest(entry.Request)["Error"].ResultCode);
1441
Assert.Equal(TargetResultCode.
Failure
, resultsCache.GetResultForRequest(entry.Request)["Build"].ResultCode);
1443
Assert.Equal(TargetResultCode.
Failure
, resultsCache.GetResultForRequest(entry.Request)["_Error1"].ResultCode);
BackEnd\TargetEntry_Tests.cs (1)
448
Assert.Equal(TargetResultCode.
Failure
, results.ResultCode);
BackEnd\TargetResult_Tests.cs (4)
31
Assert.Equal(TargetResultCode.
Failure
, result.ResultCode);
44
Assert.Equal(TargetResultCode.
Failure
, result.ResultCode);
69
Assert.Equal(TargetResultCode.
Failure
, result.ResultCode);
82
Assert.Equal(TargetResultCode.
Failure
, result.ResultCode);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1518
buildResult[targetName].ResultCode.ShouldBe(TargetResultCode.
Failure
);