2 writes to Result
Microsoft.Build (2)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (2)
133
Result
= null;
488
Result
= result;
19 references to Result
Microsoft.Build (6)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (5)
273
BuildResult result = entry.
Result
?? new BuildResult(entry.Request, new BuildAbortedException());
817
completedEntry.
Result
.DefaultTargets = configuration.ProjectDefaultTargets;
818
completedEntry.
Result
.InitialTargets = configuration.ProjectInitialTargets;
819
completedEntry.
Result
.ProjectTargets = configuration.ProjectTargets;
823
RaiseRequestComplete(completedEntry.Request, completedEntry.
Result
);
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
475
ErrorUtilities.VerifyThrow(
Result
== null, "Entry already Completed.");
Microsoft.Build.Engine.UnitTests (13)
BackEnd\BuildRequestEntry_Tests.cs (7)
49
Assert.Null(entry.
Result
);
54
Assert.Null(entry.
Result
);
62
Assert.Null(entry.
Result
);
70
Assert.Null(entry.
Result
);
75
Assert.Null(entry.
Result
);
85
Assert.NotNull(entry.
Result
);
86
Assert.Equal(entry.
Result
, result);
BackEnd\RequestBuilder_Tests.cs (6)
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);
236
Assert.Equal(typeof(InvalidProjectFileException), _buildRequestCompleted_Entry.
Result
.Exception.GetType());