62 references to TargetResultCode
Microsoft.Build (22)
BackEnd\Components\Caching\ResultsCache.cs (2)
320if (!result.HasResultsForTarget(target) || (result[target].ResultCode == TargetResultCode.Skipped && !skippedResultsAreOK)) 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 (7)
286if (results[i].ResultCode == TargetResultCode.Failure) 554if (targetResult.ResultCode != TargetResultCode.Skipped) 558bool success = targetResult.ResultCode == TargetResultCode.Success; 578if (targetResult.ResultCode == TargetResultCode.Success) 637else if (topEntry.ParentEntry?.Result?.ResultCode == TargetResultCode.Skipped) 670if (_buildResult[targetSpecification.TargetName].ResultCode != TargetResultCode.Skipped) 802if (result?.ResultCode == TargetResultCode.Failure && !result.TargetFailureDoesntCauseBuildFailure)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
784ErrorUtilities.VerifyThrow(_targetResult.ResultCode == TargetResultCode.Skipped, "ResultCode must be Skipped. ResultCode is {0}.", _state);
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
990if (results[i].ResultCode == TargetResultCode.Failure) 1169if (results[i].ResultCode == TargetResultCode.Failure)
BackEnd\Shared\BuildResult.cs (2)
385if ((result.Value.ResultCode == TargetResultCode.Failure && !result.Value.TargetFailureDoesntCauseBuildFailure) 536ErrorUtilities.VerifyThrow(targetResult.ResultCode == TargetResultCode.Skipped, "Items already exist for target {0}.", target);
BackEnd\Shared\ITargetResult.cs (1)
58TargetResultCode ResultCode { get; }
BackEnd\Shared\TargetResult.cs (5)
116public TargetResultCode ResultCode 125return TargetResultCode.Failure; 128return TargetResultCode.Skipped; 131return TargetResultCode.Success; 134return TargetResultCode.Skipped;
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildManager_Tests.cs (2)
3483Assert.Equal(TargetResultCode.Success, buildResult.ResultsByTarget["target1"].ResultCode); 3484Assert.Equal(TargetResultCode.Success, buildResult.ResultsByTarget["target2"].ResultCode);
BackEnd\BuildResult_Tests.cs (7)
130Assert.Equal(TargetResultCode.Success, result["foo"].ResultCode); 131Assert.Equal(TargetResultCode.Failure, result["bar"].ResultCode); 200Assert.Equal(TargetResultCode.Success, result["foo"].ResultCode); 201Assert.Equal(TargetResultCode.Failure, result["bar"].ResultCode); 209Assert.Equal(TargetResultCode.Success, result["foo"].ResultCode); 210Assert.Equal(TargetResultCode.Failure, result["bar"].ResultCode); 211Assert.Equal(TargetResultCode.Success, result["xor"].ResultCode);
BackEnd\TargetBuilder_Tests.cs (17)
109Assert.Equal(TargetResultCode.Success, result["Empty"].ResultCode); 132Assert.Equal(TargetResultCode.Success, result["Baz"].ResultCode); 137Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Bar"].ResultCode); 156Assert.Equal(TargetResultCode.Success, result["DepSkip"].ResultCode); 160Assert.Equal(TargetResultCode.Skipped, resultsCache.GetResultForRequest(entry.Request)["SkipCondition"].ResultCode); 199Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["DepError"].ResultCode); 200Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Foo"].ResultCode); 201Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Skip"].ResultCode); 202Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["Error"].ResultCode); 203Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Bar"].ResultCode); 204Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Baz"].ResultCode); 985result.ResultsByTarget["Build"].ResultCode.ShouldBe(TargetResultCode.Success); 1010result.ResultsByTarget["Build"].ResultCode.ShouldBe(TargetResultCode.Success); 1029result.ResultsByTarget["Build"].ResultCode.ShouldBe(TargetResultCode.Success); 1441Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["Build"].ResultCode); 1442Assert.Equal(TargetResultCode.Skipped, resultsCache.GetResultForRequest(entry.Request)["ProduceError1"].ResultCode); 1443Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["_Error1"].ResultCode);
BackEnd\TargetEntry_Tests.cs (8)
365Assert.Equal(TargetResultCode.Success, results.ResultCode); 389Assert.Equal(TargetResultCode.Success, results.ResultCode); 409Assert.Equal(TargetResultCode.Success, results.ResultCode); 417Assert.Equal(TargetResultCode.Skipped, results.ResultCode); 426Assert.Equal(TargetResultCode.Success, results.ResultCode); 435Assert.Equal(TargetResultCode.Success, results.ResultCode); 448Assert.Equal(TargetResultCode.Failure, results.ResultCode); 887Assert.Equal(TargetResultCode.Success, result.ResultsByTarget["Build"].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 (2)
ObjectModelHelpers.cs (2)
1517buildResult[targetName].ResultCode.ShouldBe(TargetResultCode.Failure); 1541buildResult[targetName].ResultCode.ShouldBe(TargetResultCode.Success);