Implemented interface member:
property
ResultCode
Microsoft.Build.Execution.ITargetResult.ResultCode
32 references to ResultCode
Microsoft.Build (8)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (5)
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)
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\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);
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
3483
Assert.Equal(TargetResultCode.Success, buildResult.ResultsByTarget["target1"].
ResultCode
);
3484
Assert.Equal(TargetResultCode.Success, buildResult.ResultsByTarget["target2"].
ResultCode
);
BackEnd\TargetBuilder_Tests.cs (3)
985
result.ResultsByTarget["Build"].
ResultCode
.ShouldBe(TargetResultCode.Success);
1010
result.ResultsByTarget["Build"].
ResultCode
.ShouldBe(TargetResultCode.Success);
1029
result.ResultsByTarget["Build"].
ResultCode
.ShouldBe(TargetResultCode.Success);
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 (8)
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
);
103
Assert.Equal(result.
ResultCode
, deserializedResult.
ResultCode
);
123
Assert.Equal(result.
ResultCode
, deserializedResult.
ResultCode
);
InternalEngineHelpers.cs (2)
181
a.
ResultCode
.ShouldBe(b.
ResultCode
);
MSBuild (1)
JsonOutputFormatter.cs (1)
137
targetResults["Result"] = targetResult.
ResultCode
.ToString();