Skip to content

Document StackTraceLineNumberSupport option#52989

Open
MichalStrehovsky wants to merge 2 commits intomainfrom
MichalStrehovsky-patch-2
Open

Document StackTraceLineNumberSupport option#52989
MichalStrehovsky wants to merge 2 commits intomainfrom
MichalStrehovsky-patch-2

Conversation

@MichalStrehovsky
Copy link
Copy Markdown
Member

@MichalStrehovsky MichalStrehovsky commented Apr 13, 2026

Added support for generating line number information in stack traces for AOT published apps.

Cc @dotnet/ilc-contrib


Internal previews

📄 File 🔗 Preview link
docs/core/deploying/trimming/trimming-options.md docs/core/deploying/trimming/trimming-options

Added support for generating line number information in stack traces for AOT published apps.
Copilot AI review requested due to automatic review settings April 13, 2026 01:25
@MichalStrehovsky MichalStrehovsky requested review from a team and adegeo as code owners April 13, 2026 01:25
@dotnetrepoman dotnetrepoman bot added this to the April 2026 milestone Apr 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents a new MSBuild trimming/AOT option that controls whether NativeAOT publishes extra source line information for stack traces, helping developers get file/line details at runtime.

Changes:

  • Add StackTraceLineNumberSupport (.NET 11+) to the Trim framework library features table, describing its effect for PublishAot apps.

Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants