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