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