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