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