From 8440e843856f237c528d3c610099cbb1578631fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Sun, 12 Apr 2026 18:25:09 -0700 Subject: [PATCH 1/2] Document StackTraceLineNumberSupport option Added support for generating line number information in stack traces for AOT published apps. --- docs/core/deploying/trimming/trimming-options.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/deploying/trimming/trimming-options.md b/docs/core/deploying/trimming/trimming-options.md index 7c1c54d42ec71..d0e030a6e93ae 100644 --- a/docs/core/deploying/trimming/trimming-options.md +++ b/docs/core/deploying/trimming/trimming-options.md @@ -76,6 +76,7 @@ Several feature areas of the framework libraries come with trimmer directives th | `InvariantGlobalization` | When set to `true`, removes globalization-specific code and data. For more information, see [Invariant mode](../../runtime-config/globalization.md#invariant-mode). | | `MetadataUpdaterSupport` | When set to `false`, removes metadata update–specific logic related to hot reload. | | `MetricsSupport` | When set to `false`, removes support for instrumentation. | +| `StackTraceLineNumberSupport` (.NET 11+) | (`PublishAot` only.) When set to `true`, generates additional information about line numbers into the output executable module. Stack traces (for example, or ) will include information about file names and line numbers at run time. This information is similar to the information generated into debugging symbol files (PDB/DWO/dSYM files), however for apps published with `PublishAot` the runtime doesn't read the native symbol files and the debugging symbols are only used by debuggers. | | `StackTraceSupport` (.NET 8+) | When set to `false`, removes support for generating stack traces (for example, or ) by the runtime. The amount of information that is removed from stack trace strings might depend on other deployment options. This option does not affect stack traces generated by debuggers. | | `UseNativeHttpHandler` | When set to `true`, uses the default platform implementation of for Android and iOS and removes the managed implementation. | | `UseSizeOptimizedLinq` (.NET 10+) | When set to `true`, removes some of the throughput optimizations in LINQ that adversely affect the size of the application. Defaults to `true` with `PublishAot`; it might not be possible to natively compile some applications with this property set to `false`. | From 64a9826af91ca01e8bf9f572cfcf3c1eda978149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 15 Apr 2026 09:40:13 +0900 Subject: [PATCH 2/2] Update docs/core/deploying/trimming/trimming-options.md Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- docs/core/deploying/trimming/trimming-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/deploying/trimming/trimming-options.md b/docs/core/deploying/trimming/trimming-options.md index d0e030a6e93ae..8f777cb024bf2 100644 --- a/docs/core/deploying/trimming/trimming-options.md +++ b/docs/core/deploying/trimming/trimming-options.md @@ -76,7 +76,7 @@ Several feature areas of the framework libraries come with trimmer directives th | `InvariantGlobalization` | When set to `true`, removes globalization-specific code and data. For more information, see [Invariant mode](../../runtime-config/globalization.md#invariant-mode). | | `MetadataUpdaterSupport` | When set to `false`, removes metadata update–specific logic related to hot reload. | | `MetricsSupport` | When set to `false`, removes support for instrumentation. | -| `StackTraceLineNumberSupport` (.NET 11+) | (`PublishAot` only.) When set to `true`, generates additional information about line numbers into the output executable module. Stack traces (for example, or ) will include information about file names and line numbers at run time. This information is similar to the information generated into debugging symbol files (PDB/DWO/dSYM files), however for apps published with `PublishAot` the runtime doesn't read the native symbol files and the debugging symbols are only used by debuggers. | +| `StackTraceLineNumberSupport` (.NET 11+) | (`PublishAot` only.) When set to `true`, generates additional line number information in the output executable module. Stack traces (for example, and ) will include information about file names and line numbers at runtime. This information is similar to the information generated into debugging symbol files (PDB/DWO/dSYM files). However, for apps published with `PublishAot`, the runtime doesn't read the native symbol files and the debugging symbols are only used by debuggers. | | `StackTraceSupport` (.NET 8+) | When set to `false`, removes support for generating stack traces (for example, or ) by the runtime. The amount of information that is removed from stack trace strings might depend on other deployment options. This option does not affect stack traces generated by debuggers. | | `UseNativeHttpHandler` | When set to `true`, uses the default platform implementation of for Android and iOS and removes the managed implementation. | | `UseSizeOptimizedLinq` (.NET 10+) | When set to `true`, removes some of the throughput optimizations in LINQ that adversely affect the size of the application. Defaults to `true` with `PublishAot`; it might not be possible to natively compile some applications with this property set to `false`. |