188 references to BuildResultCode
Microsoft.Build (27)
BackEnd\BuildManager\BuildManager.cs (1)
2717_overallBuildSuccess &= (submission.BuildResultBase?.OverallResult == BuildResultCode.Success);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
480if (result.OverallResult == BuildResultCode.Success)
BackEnd\Components\Logging\NodeLoggingContext.cs (1)
123projectLoggingContext.LogProjectFinished(result.OverallResult == BuildResultCode.Success);
BackEnd\Components\ProjectCache\CacheResult.cs (2)
124private static WorkUnitResult CreateWorkUnitResult(BuildResultCode resultCode) 126return resultCode == BuildResultCode.Success
BackEnd\Components\ProjectCache\PluginTargetResult.cs (2)
18public BuildResultCode ResultCode { get; } 23BuildResultCode resultCode)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
882_projectLoggingContext.LogProjectFinished(result.OverallResult == BuildResultCode.Success);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1243if (results[i].OverallResult == BuildResultCode.Failure)
BackEnd\Components\Scheduler\Scheduler.cs (2)
427if (result.OverallResult != BuildResultCode.Failure) 1857if (response.BuildResult.OverallResult != BuildResultCode.Failure)
BackEnd\Shared\BuildResult.cs (8)
201_baseOverallResult = existingResults.OverallResult == BuildResultCode.Success; 268_baseOverallResult = result.OverallResult == BuildResultCode.Success; 285_baseOverallResult = result.OverallResult == BuildResultCode.Success; 374public override BuildResultCode OverallResult 380return BuildResultCode.Failure; 388return BuildResultCode.Failure; 392return BuildResultCode.Success; 731_baseOverallResult = OverallResult == BuildResultCode.Success,
BackEnd\Shared\BuildResultBase.cs (1)
28public abstract BuildResultCode OverallResult { get; }
BackEnd\Shared\IBuildResults.cs (1)
25BuildResultCode OverallResult { get; }
Graph\GraphBuildResult.cs (5)
55public override BuildResultCode OverallResult 61return BuildResultCode.Failure; 66if (result.Value.OverallResult == BuildResultCode.Failure) 68return BuildResultCode.Failure; 72return BuildResultCode.Success;
Instance\ProjectInstance.cs (1)
2725return results.OverallResult == BuildResultCode.Success;
Microsoft.Build.BuildCheck.UnitTests (1)
TaskInvocationAnalysisDataTests.cs (1)
100result.OverallResult.ShouldBe(BuildResultCode.Success);
Microsoft.Build.Engine.UnitTests (144)
BackEnd\BuildManager_Tests.cs (79)
136Assert.Equal(BuildResultCode.Success, result.OverallResult); 207result.OverallResult.ShouldBe(BuildResultCode.Success); 253result.OverallResult.ShouldBe(BuildResultCode.Success); 452Assert.Equal(BuildResultCode.Success, result.OverallResult); 517result.OverallResult.ShouldBe(BuildResultCode.Success); 570Assert.Equal(BuildResultCode.Success, result.OverallResult); 610Assert.Equal(BuildResultCode.Success, result.OverallResult); 654Assert.Equal(BuildResultCode.Success, result.OverallResult); 716Assert.Equal(BuildResultCode.Success, result.OverallResult); 786Assert.Equal(BuildResultCode.Success, result.OverallResult); 837Assert.Equal(BuildResultCode.Success, result.OverallResult); 906Assert.Equal(BuildResultCode.Success, result.OverallResult); 935Assert.Equal(BuildResultCode.Success, result.OverallResult); 959Assert.Equal(BuildResultCode.Failure, result.OverallResult); 992result.OverallResult.ShouldBe(BuildResultCode.Success); 1045Assert.Equal(BuildResultCode.Failure, result.OverallResult); 1079Assert.Equal(BuildResultCode.Failure, result.OverallResult); 1341Assert.Equal(BuildResultCode.Success, result.OverallResult); 1344Assert.Equal(BuildResultCode.Success, result2.OverallResult); 1384Assert.Equal(BuildResultCode.Success, result2.OverallResult); 1385Assert.Equal(BuildResultCode.Success, result.OverallResult); 1420Assert.Equal(BuildResultCode.Success, submission1.BuildResult.OverallResult); 1421Assert.Equal(BuildResultCode.Success, submission2.BuildResult.OverallResult); 1471Assert.Equal(BuildResultCode.Success, submission1.BuildResult.OverallResult); 1472Assert.Equal(BuildResultCode.Failure, submission2.BuildResult.OverallResult); 1564Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1599Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1639Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1677Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1718Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1752Assert.Equal(BuildResultCode.Failure, result.OverallResult); // "Build should have failed." 1782Assert.Equal(BuildResultCode.Success, result1.OverallResult); 1784Assert.Equal(BuildResultCode.Success, result2.OverallResult); 1817Assert.Equal(BuildResultCode.Success, result1.OverallResult); 1819Assert.Equal(BuildResultCode.Success, result2.OverallResult); 1851Assert.Equal(BuildResultCode.Success, result1.OverallResult); 1853Assert.Equal(BuildResultCode.Success, result2.OverallResult); 2165Assert.Equal(BuildResultCode.Success, result.OverallResult); 2172Assert.Equal(BuildResultCode.Success, result2.OverallResult); 2200Assert.Equal(BuildResultCode.Success, result.OverallResult); 2229Assert.Equal(BuildResultCode.Success, result.OverallResult); 2415Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2476Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2534Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2582Assert.Equal(BuildResultCode.Success, result.OverallResult); 2671Assert.Equal(BuildResultCode.Success, result.OverallResult); 2742Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2839Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2939Assert.Equal(BuildResultCode.Failure, result.OverallResult); 3025Assert.Equal(BuildResultCode.Failure, result.OverallResult); 3094Assert.Equal(BuildResultCode.Success, result.OverallResult); 3224Assert.Equal(BuildResultCode.Success, br.OverallResult); 3235Assert.Equal(BuildResultCode.Success, br.OverallResult); 3311Assert.Equal(BuildResultCode.Success, br.OverallResult); 3322Assert.Equal(BuildResultCode.Success, br.OverallResult); 3417Assert.Equal(BuildResultCode.Failure, result1.OverallResult); 3447Assert.Equal(BuildResultCode.Failure, result1.OverallResult); 3478Assert.Equal(BuildResultCode.Failure, buildResult.OverallResult); 3516Assert.Equal(BuildResultCode.Success, result.OverallResult); // "Test project failed to build correctly." 3724Assert.Equal(BuildResultCode.Success, results.OverallResult); 3746Assert.Equal(BuildResultCode.Success, results.OverallResult); 3809Assert.Equal(BuildResultCode.Success, result.OverallResult); 3876Assert.True(results.OverallResult == BuildResultCode.Success); 3903Assert.Equal(BuildResultCode.Success, results.OverallResult); 3907Assert.Equal(BuildResultCode.Failure, results.OverallResult); 3966Assert.Equal(BuildResultCode.Success, result.OverallResult); 4050result.OverallResult.ShouldBe(BuildResultCode.Success); 4170result.OverallResult.ShouldBe(BuildResultCode.Success); 4209result.OverallResult.ShouldBe(BuildResultCode.Success); 4213result.ResultsByNode[node1].OverallResult.ShouldBe(BuildResultCode.Success); 4217result.ResultsByNode[node2].OverallResult.ShouldBe(BuildResultCode.Success); 4294result.OverallResult.ShouldBe(BuildResultCode.Failure); 4298result.ResultsByNode[node1].OverallResult.ShouldBe(BuildResultCode.Failure); 4302result.ResultsByNode[node2].OverallResult.ShouldBe(BuildResultCode.Failure); 4338result.OverallResult.ShouldBe(BuildResultCode.Failure); 4362graphResult.OverallResult.ShouldBe(BuildResultCode.Success); 4417Assert.Equal(BuildResultCode.Success, result.OverallResult); 4427Assert.Equal(BuildResultCode.Failure, result.OverallResult); 4439Assert.Equal(BuildResultCode.Failure, result.OverallResult);
BackEnd\BuildRequestEngine_Tests.cs (5)
138if (configResult.OverallResult == BuildResultCode.Failure) 357Assert.Equal(BuildResultCode.Failure, _requestComplete_Result.OverallResult); 384Assert.Equal(BuildResultCode.Success, _requestComplete_Result.OverallResult); 437Assert.Equal(BuildResultCode.Success, _requestComplete_Result.OverallResult); 502Assert.Equal(BuildResultCode.Success, _requestComplete_Result.OverallResult);
BackEnd\BuildResult_Tests.cs (5)
96Assert.Equal(BuildResultCode.Success, result.OverallResult); 99Assert.Equal(BuildResultCode.Success, result.OverallResult); 102Assert.Equal(BuildResultCode.Success, result.OverallResult); 105Assert.Equal(BuildResultCode.Failure, result.OverallResult); 111Assert.Equal(BuildResultCode.Failure, result2.OverallResult);
BackEnd\RequestBuilder_Tests.cs (5)
99Assert.Equal(BuildResultCode.Success, _buildRequestCompleted_Entry.Result.OverallResult); 132Assert.Equal(BuildResultCode.Failure, _buildRequestCompleted_Entry.Result.OverallResult); 171Assert.Equal(BuildResultCode.Success, _buildRequestCompleted_Entry.Result.OverallResult); 213Assert.Equal(BuildResultCode.Failure, _buildRequestCompleted_Entry.Result.OverallResult); 235Assert.Equal(BuildResultCode.Failure, _buildRequestCompleted_Entry.Result.OverallResult);
BackEnd\ResultsCache_Tests.cs (1)
192Assert.Equal(BuildResultCode.Success, response.Results.OverallResult);
BackEnd\Scheduler_Tests.cs (1)
717Assert.Equal(BuildResultCode.Success, result.OverallResult);
BackEnd\SdkResultOutOfProc_Tests.cs (2)
130result.OverallResult.ShouldBe(BuildResultCode.Success); 176result.OverallResult.ShouldBe(BuildResultCode.Success);
BackEnd\TargetBuilder_Tests.cs (1)
274result.OverallResult.ShouldBe(BuildResultCode.Failure);
BackEnd\TargetEntry_Tests.cs (1)
884Assert.Equal(BuildResultCode.Failure, result.OverallResult);
BackEnd\TaskBuilder_Tests.cs (1)
198result.OverallResult.ShouldBe(BuildResultCode.Failure);
BackEnd\TaskRegistry_Tests.cs (1)
679result.OverallResult.ShouldBe(BuildResultCode.Success);
BinaryLogger_Tests.cs (1)
599.OverallResult.ShouldBe(BuildResultCode.Success);
Construction\SolutionProjectGenerator_Tests.cs (2)
2132Assert.Equal(BuildResultCode.Failure, result.OverallResult); 2220Assert.Equal(BuildResultCode.Failure, result.OverallResult);
EndToEndCondition_Tests.cs (2)
45result.OverallResult.ShouldBe(BuildResultCode.Success); 68result.OverallResult.ShouldBe(BuildResultCode.Success);
Evaluation\Expander_Tests.cs (2)
1049BuildResultCode.Failure); 1065BuildResultCode.Failure);
EvaluationProfiler_Tests.cs (1)
293Assert.Equal(BuildResultCode.Success, result.OverallResult);
Graph\IsolateProjects_Tests.cs (19)
163[InlineData(BuildResultCode.Success, new string[] { })] 164[InlineData(BuildResultCode.Success, new[] { "BuildSelf" })] 165public void CacheAndUndeclaredReferenceEnforcementShouldAcceptSelfReferences(BuildResultCode expectedBuildResult, string[] targets) 182result.OverallResult.ShouldBe(BuildResultCode.Success); 206result.OverallResult.ShouldBe(BuildResultCode.Failure); 231result.OverallResult.ShouldBe(BuildResultCode.Success); 253result.OverallResult.ShouldBe(BuildResultCode.Success); 347declaredReferenceBuildResults[0].OverallResult.ShouldBe(BuildResultCode.Success); 348rootBuildResults[0].OverallResult.ShouldBe(BuildResultCode.Success); 380result.OverallResult.ShouldBe(BuildResultCode.Success); 402result.OverallResult.ShouldBe(BuildResultCode.Success); 419result.OverallResult.ShouldBe(BuildResultCode.Failure); 436result.OverallResult.ShouldBe(BuildResultCode.Failure); 494result.OverallResult.ShouldBe(BuildResultCode.Success); 545.OverallResult.ShouldBe(BuildResultCode.Success); 551.OverallResult.ShouldBe(BuildResultCode.Success); 605buildManagerSession.BuildProjectFile(referenceFile).OverallResult.ShouldBe(BuildResultCode.Success); 606buildManagerSession.BuildProjectFile(referenceFile, new[] { "A" }).OverallResult.ShouldBe(BuildResultCode.Success); 608buildManagerSession.BuildProjectFile(projectFile).OverallResult.ShouldBe(BuildResultCode.Success);
Graph\ProjectGraph_Tests.cs (3)
1565result.Value.Result.OverallResult.ShouldBe(BuildResultCode.Success); 1613results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 1615project1BuildResult.OverallResult.ShouldBe(BuildResultCode.Failure);
Graph\ResultCacheBasedBuilds_Tests.cs (10)
70result.OverallResult.ShouldBe(BuildResultCode.Failure); 92result.OverallResult.ShouldBe(BuildResultCode.Success); 139result.OverallResult.ShouldBe(BuildResultCode.Success); 159result.OverallResult.ShouldBe(BuildResultCode.Success); 171resultFromCachedBuild.OverallResult.ShouldBe(BuildResultCode.Success); 393results["3"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 394results["2"].Result.OverallResult.ShouldBe(BuildResultCode.Success); 396results["1"].Result.OverallResult.ShouldBe(BuildResultCode.Failure); 480result.OverallResult.ShouldBe(BuildResultCode.Success); 567result.OverallResult.ShouldBe(BuildResultCode.Failure);
ProjectCache\ProjectCacheTests.cs (2)
141BuildResultCode.Success) 986BuildResultCode.Success)
Microsoft.Build.Tasks.UnitTests (3)
CreateItem_Tests.cs (1)
217result.OverallResult.ShouldBe(BuildResultCode.Success);
Exec_Tests.cs (2)
976result.OverallResult.ShouldBe(BuildResultCode.Success); 1028result.OverallResult.ShouldBe(BuildResultCode.Success);
Microsoft.Build.UnitTests.Shared (8)
ObjectModelHelpers.cs (8)
165BuildResultCode.Success, 172BuildResultCode.Success, 178result.OverallResult.ShouldBe(BuildResultCode.Failure); 188result.OverallResult.ShouldBe(BuildResultCode.Failure); 1023return result.OverallResult == BuildResultCode.Success; 1385public static MockLogger BuildProjectContentUsingBuildManagerExpectResult(string content, BuildResultCode expectedResult) 1516buildResult.OverallResult.ShouldBe(BuildResultCode.Failure); 1540buildResult.OverallResult.ShouldBe(BuildResultCode.Success);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
266if (result.OverallResult == MSB.Execution.BuildResultCode.Failure)
MSBuild (4)
XMake.cs (4)
1595if (result.OverallResult != BuildResultCode.Success) 1601success = result.OverallResult == BuildResultCode.Success; 1627success = graphResult.OverallResult == BuildResultCode.Success; 1632success = result.OverallResult == BuildResultCode.Success;