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)
1002
if (result?.
Exception
== null)
2050
if (submissionException == null && finishedBuildSubmission.BuildResult?.
Exception
!= null)
2053
submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.
Exception
);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
886
if (result.
Exception
== null)
BackEnd\Shared\BuildResult.cs (1)
591
_requestException ??= results.
Exception
;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
4128
submission1.BuildResult.
Exception
.ShouldBeOfType<InvalidProjectFileException>();
4129
submission2.BuildResult.
Exception
.ShouldBeOfType<InvalidProjectFileException>();
BackEnd\BuildResult_Tests.cs (6)
84
Assert.Null(result.
Exception
);
88
Assert.Equal(e, result.
Exception
);
334
Assert.True(TranslationHelpers.CompareExceptions(result.
Exception
, deserializedResult.
Exception
, out string diffReason), diffReason);
335
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)
135
Assert.NotNull(retrievedResult.
Exception
);
466
if ((a.
Exception
== null) ^ (b.
Exception
== null))
471
if (a.
Exception
!= null)
473
if (a.
Exception
.GetType() != b.
Exception
.GetType())
InternalEngineHelpers.cs (2)
161
actualBuildResult.
Exception
.ShouldBe(expectedBuildResult.
Exception
);
ProjectCache\ProjectCacheTests.cs (6)
1140
buildResult.
Exception
.ShouldNotBeNull();
1141
buildResult.
Exception
.ShouldBeOfType<ProjectCacheException>();
1145
buildResult.
Exception
.InnerException!.ShouldNotBeNull();
1146
buildResult.
Exception
.InnerException!.Message.ShouldContain("Cache plugin exception from");
1150
buildResult.
Exception
.InnerException.ShouldBeNull();
1629
buildResult.
Exception
.ShouldBeNull();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
167
customMessage: result.
Exception
is not null ? result.
Exception
.ToString() : string.Empty);
183
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);