1 implementation of ResultCode
Microsoft.Build (1)
BackEnd\Shared\TargetResult.cs (1)
116public TargetResultCode ResultCode
37 references to ResultCode
Microsoft.Build (8)
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 (2)
286if (results[i].ResultCode == TargetResultCode.Failure) 670if (_buildResult[targetSpecification.TargetName].ResultCode != TargetResultCode.Skipped)
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
990if (results[i].ResultCode == TargetResultCode.Failure) 1169if (results[i].ResultCode == TargetResultCode.Failure)
Microsoft.Build.Engine.UnitTests (27)
BackEnd\BuildResult_Tests.cs (11)
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); 339Assert.Equal(result["alpha"].ResultCode, deserializedResult["alpha"].ResultCode); 342Assert.Equal(result["omega"].ResultCode, deserializedResult["omega"].ResultCode);
BackEnd\ResultsCache_Tests.cs (2)
523if (a[target].ResultCode != b[target].ResultCode)
BackEnd\TargetBuilder_Tests.cs (14)
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); 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);
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
1518buildResult[targetName].ResultCode.ShouldBe(TargetResultCode.Failure); 1542buildResult[targetName].ResultCode.ShouldBe(TargetResultCode.Success);