Base:
property
Exception
Microsoft.Build.Execution.BuildResultBase.Exception
Implemented interface member:
property
Exception
Microsoft.Build.BackEnd.IBuildResults.Exception
1 write to Exception
Microsoft.Build (1)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
888
result.
Exception
= ex;
33 references to Exception
Microsoft.Build (5)
BackEnd\BuildManager\BuildManager.cs (3)
1019
if (result?.
Exception
== null)
2086
if (submissionException == null && finishedBuildSubmission.BuildResult?.
Exception
!= null)
2089
submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.
Exception
);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
886
if (result.
Exception
== null)
BackEnd\Shared\BuildResult.cs (1)
592
_requestException ??= results.
Exception
;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
4127
submission1.BuildResult.
Exception
.ShouldBeOfType<InvalidProjectFileException>();
4128
submission2.BuildResult.
Exception
.ShouldBeOfType<InvalidProjectFileException>();
BackEnd\BuildResult_Tests.cs (6)
83
Assert.Null(result.
Exception
);
87
Assert.Equal(e, result.
Exception
);
333
Assert.True(TranslationHelpers.CompareExceptions(result.
Exception
, deserializedResult.
Exception
, out string diffReason), diffReason);
334
Assert.Equal(result.
Exception
?.Message, deserializedResult.
Exception
?.Message);
BackEnd\RequestBuilder_Tests.cs (1)
236
Assert.Equal(typeof(InvalidProjectFileException), _buildRequestCompleted_Entry.Result.
Exception
.GetType());
BackEnd\ResultsCache_Tests.cs (6)
132
Assert.NotNull(retrievedResult.
Exception
);
463
if ((a.
Exception
== null) ^ (b.
Exception
== null))
468
if (a.
Exception
!= null)
470
if (a.
Exception
.GetType() != b.
Exception
.GetType())
InternalEngineHelpers.cs (2)
161
actualBuildResult.
Exception
.ShouldBe(expectedBuildResult.
Exception
);
ProjectCache\ProjectCacheTests.cs (6)
1141
buildResult.
Exception
.ShouldNotBeNull();
1142
buildResult.
Exception
.ShouldBeOfType<ProjectCacheException>();
1146
buildResult.
Exception
.InnerException!.ShouldNotBeNull();
1147
buildResult.
Exception
.InnerException!.Message.ShouldContain("Cache plugin exception from");
1151
buildResult.
Exception
.InnerException.ShouldBeNull();
1630
buildResult.
Exception
.ShouldBeNull();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
165
customMessage: result.
Exception
is not null ? result.
Exception
.ToString() : string.Empty);
181
result.
Exception
.Message.ShouldContain(exceptionMessageSubstring);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Build\ProjectBuildManager.cs (2)
268
if (result.
Exception
!= null)
270
log.Add(result.
Exception
, projectInstance.FullPath);