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)
1019if (result?.Exception == null) 2086if (submissionException == null && finishedBuildSubmission.BuildResult?.Exception != null) 2089submissionException = ExceptionDispatchInfo.Capture(finishedBuildSubmission.BuildResult.Exception);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
886if (result.Exception == null)
BackEnd\Shared\BuildResult.cs (1)
592_requestException ??= results.Exception;
Microsoft.Build.Engine.UnitTests (23)
BackEnd\BuildManager_Tests.cs (2)
4127submission1.BuildResult.Exception.ShouldBeOfType<InvalidProjectFileException>(); 4128submission2.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)
236Assert.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)
1141buildResult.Exception.ShouldNotBeNull(); 1142buildResult.Exception.ShouldBeOfType<ProjectCacheException>(); 1146buildResult.Exception.InnerException!.ShouldNotBeNull(); 1147buildResult.Exception.InnerException!.Message.ShouldContain("Cache plugin exception from"); 1151buildResult.Exception.InnerException.ShouldBeNull(); 1630buildResult.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)
268if (result.Exception != null) 270log.Add(result.Exception, projectInstance.FullPath);