6 overrides of StackTrace
Microsoft.Build.Framework (1)
BuildException\BuildExceptionBase.cs (1)
41public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace;
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutionException.cs (1)
22public override string? StackTrace => _stackTrace ?? base.StackTrace;
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
35 public override string? StackTrace => _stackTrace ?? base.StackTrace;
MSBuildTaskHost (1)
BuildExceptionBase.cs (1)
41public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace;
PresentationFramework (1)
MS\Internal\PtsHost\Pts.cs (1)
290public override string StackTrace
xunit.assert (1)
Sdk\Exceptions\MultipleException.cs (1)
43 public override string? StackTrace =>
121 references to StackTrace
Aspire.Dashboard (1)
Components\Controls\TelemetryErrorBoundary.cs (1)
25[TelemetryPropertyKeys.ExceptionStackTrace] = new AspireTelemetryProperty(ex.StackTrace ?? string.Empty)
BuildBoss (1)
Program.cs (1)
27Console.WriteLine(ex.StackTrace);
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
99var stackTrace = e.StackTrace;
csc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
84builder.AppendLine(exception.StackTrace);
dotnet-svcutil-lib (5)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
494fieldToValueDictionary.Add("_stackTraceString", value.StackTrace);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\DiagnosticTraceBase.cs (1)
193string retval = exception.StackTrace;
FrameworkFork\System.ServiceModel\System\ServiceModel\ExceptionDetail.cs (1)
29_stackTrace = exception.StackTrace;
Shared\ProjectPropertyResolver.cs (1)
98await safeLogger.WriteErrorAsync($"{ex.Message}{Environment.NewLine}{ex.StackTrace}", logToUI: false);
Shared\Utilities\Utilities.cs (1)
43message.Append(string.Concat(Environment.NewLine, exMsg, includeStackTrace ? e.StackTrace : string.Empty));
Microsoft.AspNetCore.Components.WebView (1)
IpcSender.cs (1)
88var message = IpcCommon.Serialize(IpcCommon.OutgoingMessageType.NotifyUnhandledException, exception.Message, exception.StackTrace);
Microsoft.AspNetCore.Components.WebViewE2E.Test (2)
BasicBlazorHybridTest.cs (2)
57Console.WriteLine(ex.StackTrace); 139Console.WriteLine(ex.StackTrace);
Microsoft.AspNetCore.Hosting.Tests (1)
ConfigureBuilderTests.cs (1)
35Assert.Contains(nameof(CrasherService), ex.InnerException.StackTrace);
Microsoft.AspNetCore.Mvc.Core.Test (3)
Filters\MiddlewareFilterBuilderTest.cs (2)
218var stack = exception.StackTrace; 286var stack = exception.StackTrace;
ModelBinding\Metadata\DefaultModelMetadataTest.cs (1)
464var prop2 = typeof(Exception).GetProperty(nameof(Exception.StackTrace));
Microsoft.Build (4)
PrintLineDebuggerWriters.cs (1)
33File.AppendAllText(errorFile, $"{SimpleFormat(id, callsite, args)}\n{e.Message}\n{e.StackTrace}");
TaskLoggingHelper.cs (3)
952message += Environment.NewLine + exception.StackTrace; 967builder.AppendLine(exception.StackTrace); 1289message += Environment.NewLine + exception.StackTrace;
Microsoft.Build.Engine.OM.UnitTests (1)
PrintLineDebuggerWriters.cs (1)
33File.AppendAllText(errorFile, $"{SimpleFormat(id, callsite, args)}\n{e.Message}\n{e.StackTrace}");
Microsoft.Build.Engine.UnitTests (4)
BackEnd\TranslationHelpers.cs (4)
108if (left.StackTrace != right.StackTrace) 110diffReason = $"Exception stack traces are different ({left.StackTrace} vs {right.StackTrace}).";
Microsoft.Build.Framework (2)
BuildException\BuildExceptionBase.cs (2)
41public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace; 85writer.WriteOptionalString(exception.StackTrace);
Microsoft.Build.Tasks.CodeAnalysis (2)
CopyRefAssembly.cs (1)
51Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3", SourcePath, e.Message, e.StackTrace);
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
84builder.AppendLine(exception.StackTrace);
Microsoft.Build.Tasks.Core (1)
PrintLineDebuggerWriters.cs (1)
33File.AppendAllText(errorFile, $"{SimpleFormat(id, callsite, args)}\n{e.Message}\n{e.StackTrace}");
Microsoft.Build.Utilities.Core (4)
PrintLineDebuggerWriters.cs (1)
33File.AppendAllText(errorFile, $"{SimpleFormat(id, callsite, args)}\n{e.Message}\n{e.StackTrace}");
TaskLoggingHelper.cs (3)
952message += Environment.NewLine + exception.StackTrace; 967builder.AppendLine(exception.StackTrace); 1289message += Environment.NewLine + exception.StackTrace;
Microsoft.CodeAnalysis (1)
InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.EditorFeatures (1)
ErrorReporting\EditorErrorReportingService.cs (1)
25=> Logger.Log(FunctionId.Extension_Exception, exception.StackTrace);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
TestExtensionErrorHandler.cs (3)
32exception.StackTrace.Contains("SpanTrackingWpfToolTipPresenter")) 39exception.StackTrace.Contains("Microsoft.CodeAnalysis.Completion.Providers.AbstractEmbeddedLanguageCompletionProvider.GetLanguageProviders")) 46exception.StackTrace.Contains("Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Implementation.CompletionTelemetryHost"))
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeFixes\CodeFixServiceTests.cs (1)
614=> exception.Message + Environment.NewLine + exception.StackTrace;
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.Test.Utilities (2)
Assert\AssertEx.cs (2)
994var stack = ex.StackTrace.Split(new[] { Environment.NewLine }, StringSplitOptions.None); 1000stringBuilder.AppendLine(ex.StackTrace);
Microsoft.CodeAnalysis.Workspaces (2)
Log\WorkspaceErrorLogger.cs (1)
25=> exception.Message + Environment.NewLine + exception.StackTrace;
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\FailFast.cs (1)
75Console.WriteLine(current.StackTrace);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
UtilityTest\TaskExtensionsTests.cs (1)
23Assert.Contains($"{nameof(TaskExtensionsTests)}.{nameof(ThrowTestException)}()", ex.StackTrace);
Microsoft.DotNet.RemoteExecutor (1)
RemoteExecutionException.cs (1)
22public override string? StackTrace => _stackTrace ?? base.StackTrace;
Microsoft.Maui (1)
Handlers\HybridWebView\HybridWebViewInvokeJavaScriptException.cs (1)
35 public override string? StackTrace => _stackTrace ?? base.StackTrace;
Microsoft.Maui.Controls.Build.Tasks (2)
XamlCTask.cs (2)
322 LoggingHelper.LogMessage(Low, e.StackTrace); 407 LoggingHelper.LogMessage(Low, e.StackTrace);
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
69 LogError(ex.Message + Environment.NewLine + ex.StackTrace);
Microsoft.ML.AutoML (1)
AutoMLExperiment\IMonitor.cs (1)
61_logger.Trace(exception.Message + exception.StackTrace);
Microsoft.ML.Maml (2)
MAML.cs (2)
250writer.WriteLine(e.StackTrace); 269ch.Error(MessageSensitivity.None, e.StackTrace);
Microsoft.VisualStudio.LanguageServices (1)
Log\VisualStudioErrorLogger.cs (1)
38=> exception.Message + Environment.NewLine + exception.StackTrace;
MSBuild (1)
PrintLineDebuggerWriters.cs (1)
33File.AppendAllText(errorFile, $"{SimpleFormat(id, callsite, args)}\n{e.Message}\n{e.StackTrace}");
MSBuildTaskHost (2)
BuildExceptionBase.cs (2)
41public override string? StackTrace => string.IsNullOrEmpty(_remoteStackTrace) ? base.StackTrace : _remoteStackTrace; 85writer.WriteOptionalString(exception.StackTrace);
PresentationCore (1)
MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
3389e.Data[ExceptionContext.Key] = new ExceptionContext(e.Data[ExceptionContext.Key], e.StackTrace, plsrun, lsrun);
PresentationFramework (1)
MS\Internal\PtsHost\Pts.cs (1)
292get { return InnerException.StackTrace; }
Replay (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
84builder.AppendLine(exception.StackTrace);
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.cs (1)
164builder.AppendLine(exception.StackTrace);
RunTests (3)
Logger.cs (3)
35s_lines.Add(ex.StackTrace ?? ""); 45s_lines.Add(ex.StackTrace ?? ""); 54s_lines.Add(ex.StackTrace ?? "");
System.Net.Http (1)
System\Net\Http\DiagnosticsHandler.cs (1)
291[DynamicDependency(nameof(System.Exception.StackTrace), typeof(Exception))]
System.Net.Quic (2)
System\Net\Quic\Internal\ResettableValueTaskSource.cs (1)
178exception = exception.StackTrace is null ? ExceptionDispatchInfo.SetCurrentStackTrace(exception) : exception;
System\Net\Quic\Internal\ValueTaskSource.cs (1)
119exception = exception.StackTrace is null ? ExceptionDispatchInfo.SetCurrentStackTrace(exception) : exception;
System.Private.CoreLib (15)
src\libraries\System.Private.CoreLib\src\System\BadImageFormatException.cs (2)
103if (StackTrace != null) 104s += Environment.NewLineConst + StackTrace;
src\libraries\System.Private.CoreLib\src\System\ComponentModel\Win32Exception.cs (1)
120string? stackTrace = StackTrace;
src\libraries\System.Private.CoreLib\src\System\Exception.cs (1)
130string? stackTrace = StackTrace;
src\libraries\System.Private.CoreLib\src\System\IO\FileLoadException.cs (2)
60if (StackTrace != null) 61s += Environment.NewLineConst + StackTrace;
src\libraries\System.Private.CoreLib\src\System\IO\FileNotFoundException.cs (2)
83if (StackTrace != null) 84s += Environment.NewLineConst + StackTrace;
src\libraries\System.Private.CoreLib\src\System\Runtime\ExceptionServices\ExceptionDispatchInfo.cs (2)
82/// from the <see cref="Exception.StackTrace"/> property from the remote exception instance.</param> 87/// This method populates the <see cref="Exception.StackTrace"/> property from an arbitrary string value.
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\COMException.cs (1)
68string? stackTrace = StackTrace;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ExternalException.cs (2)
67if (StackTrace != null) 68s += Environment.NewLineConst + StackTrace;
src\System\Exception.CoreCLR.cs (1)
106string? tmpStackTraceString = StackTrace;
src\System\Runtime\ControlledExecution.CoreCLR.cs (1)
102if (tae.StackTrace is string stackTrace)
System.Private.Windows.Core (2)
System\ExceptionExtensions.cs (1)
39ex.StackTrace ?? string.Empty);
System\Private\Windows\Nrbf\SerializationRecordExtensions.cs (1)
59new NotSupportedException(ex.Message, ex), ex.StackTrace ?? string.Empty);
System.Private.Xml (2)
System\Xml\Xsl\XslException.cs (2)
93if (StackTrace != null) 95result += Environment.NewLine + StackTrace;
System.Resources.Extensions (1)
System\Resources\Extensions\BinaryFormat\SerializationExtensions.cs (1)
21ex.StackTrace ?? string.Empty);
System.Threading.Tasks.Dataflow (1)
Internal\Common.cs (1)
214Debug.Assert(exception != null && exception.StackTrace == null,
System.Web.Services.Description (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
150if (IsVerbose && !string.IsNullOrEmpty(e.StackTrace))
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16725Debug.Fail($"DataGridView.OnPaint exception: {ex.Message} stack trace {ex.StackTrace}");
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1403Debug.Fail($"Failed to get properties: {e.GetType().Name},{e.Message}\n{e.StackTrace}");
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ControlDesigner.cs (2)
2494if (exception.StackTrace is not null) 2496string[] exceptionLines = exception.StackTrace.Split('\r', '\n');
System.Windows.Forms.Tests (12)
System\Windows\Forms\ControlTests.Methods.cs (12)
3858Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 3859Assert.Contains(" System.Windows.Forms.Control.Invoke(Action method) ", exception.StackTrace); 3894Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 3895Assert.Contains(" System.Windows.Forms.Control.Invoke(Delegate method) ", exception.StackTrace); 3927Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 3928Assert.Contains(" System.Windows.Forms.Control.Invoke(Delegate method) ", exception.StackTrace); 3960Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 3961Assert.Contains(" System.Windows.Forms.Control.Invoke[T](Func`1 method) ", exception.StackTrace); 4048Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 4049Assert.Contains(nameof(Control_InvokeDelegateObjectThrowsExceptionSameThread_VerifyStackTrace), exception.StackTrace); 4119Assert.Contains(nameof(FaultingMethod), exception.StackTrace); 4120Assert.Contains(nameof(Control_InvokeDelegateObjectThrowsExceptionDifferentThread_VerifyStackTrace), exception.StackTrace);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
458DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}"));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
458DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}"));
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
458DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}"));
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
458DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}"));
Templates.Tests (1)
src\ProjectTemplates\Shared\Project.cs (1)
458DiagnosticsMessageSink.OnMessage(new DiagnosticMessage($"Giving up trying to delete directory {TemplateOutputDir} after {NumAttempts} attempts. Most recent error was: {ex.StackTrace}"));
vbc (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
84builder.AppendLine(exception.StackTrace);
VBCSCompiler (1)
src\Compilers\Core\CommandLine\CompilerServerLogger.cs (1)
84builder.AppendLine(exception.StackTrace);
xunit.assert (2)
Sdk\Exceptions\CollectionException.cs (1)
45 var filteredStack = ExceptionUtilityInternal.TransformStackTrace(ExceptionUtilityInternal.FilterStackTrace(innerException.StackTrace), " ");
Sdk\Exceptions\XunitException.cs (1)
69 var stackTrace = StackTrace;
xunit.console (2)
ConsoleRunner.cs (2)
115Console.WriteLine(ex.StackTrace); 424Console.WriteLine(e.StackTrace);