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)
892result.Exception = ex;
33 references to Exception
Microsoft.Build (5)
BackEnd\BuildManager\BuildManager.cs (3)
1091if (result?.Exception == null) 2238if (submissionException == null && finishedBuildSubmission.BuildResult?.Exception != null) 2241submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.Exception);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
890if (result.Exception == null)
BackEnd\Shared\BuildResult.cs (1)
594_requestException ??= results.Exception;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
4172submission1.BuildResult.Exception.ShouldBeOfType<InvalidProjectFileException>(); 4173submission2.BuildResult.Exception.ShouldBeOfType<InvalidProjectFileException>();
BackEnd\BuildResult_Tests.cs (6)
83Assert.Null(result.Exception); 87Assert.Equal(e, result.Exception); 333Assert.True(TranslationHelpers.CompareExceptions(result.Exception, deserializedResult.Exception, out string diffReason), diffReason); 334Assert.Equal(result.Exception?.Message, deserializedResult.Exception?.Message);
BackEnd\RequestBuilder_Tests.cs (1)
241Assert.Equal(typeof(InvalidProjectFileException), _buildRequestCompleted_Entry.Result.Exception.GetType());
BackEnd\ResultsCache_Tests.cs (6)
132Assert.NotNull(retrievedResult.Exception); 463if ((a.Exception == null) ^ (b.Exception == null)) 468if (a.Exception != null) 470if (a.Exception.GetType() != b.Exception.GetType())
InternalEngineHelpers.cs (2)
161actualBuildResult.Exception.ShouldBe(expectedBuildResult.Exception);
ProjectCache\ProjectCacheTests.cs (6)
1158buildResult.Exception.ShouldNotBeNull(); 1159buildResult.Exception.ShouldBeOfType<ProjectCacheException>(); 1163buildResult.Exception.InnerException!.ShouldNotBeNull(); 1164buildResult.Exception.InnerException!.Message.ShouldContain("Cache plugin exception from"); 1168buildResult.Exception.InnerException.ShouldBeNull(); 1647buildResult.Exception.ShouldBeNull();
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
165customMessage: result.Exception is not null ? result.Exception.ToString() : string.Empty); 181result.Exception.Message.ShouldContain(exceptionMessageSubstring);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Build\ProjectBuildManager.cs (2)
366if (result.Exception != null) 368log.Add(result.Exception, projectInstance.FullPath);