6 writes to StackTop
Microsoft.Build.Framework (1)
Telemetry\CrashTelemetry.cs (1)
403
StackTop
= ExtractStackTop(exception);
Microsoft.Build.Framework.UnitTests (5)
CrashTelemetry_Tests.cs (5)
113
StackTop
= "at Foo.Bar()",
164
StackTop
= "at Foo.Baz()",
574
StackTop
= "at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)",
591
StackTop
= "at Microsoft.Build.BackEnd.RequestBuilder.BuildProject(String projectFile)",
606
StackTop
= "at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Object[] args)",
10 references to StackTop
Microsoft.Build.Framework (4)
Telemetry\CrashTelemetry.cs (4)
146
/// is not a throw-helper (in which case <see cref="
StackTop
"/> already has the meaningful frame).
153
/// unlike <see cref="
StackTop
"/> which only captures one frame.
504
AddIfNotNull(
StackTop
);
574
AddIfNotNull(
StackTop
);
Microsoft.Build.Framework.UnitTests (6)
CrashTelemetry_Tests.cs (6)
38
telemetry.
StackTop
.ShouldNotBeNull();
97
string? stackTop = telemetry.
StackTop
;
127
props[nameof(CrashTelemetry.
StackTop
)].ShouldBe("at Foo.Bar()");
177
props[nameof(CrashTelemetry.
StackTop
)].ShouldBe("at Foo.Baz()");
459
telemetry.
StackTop
.ShouldNotBeNull();
460
telemetry.
StackTop
!.ShouldContain("ErrorUtilities.ThrowInternalError");