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