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