From ac1cde93fc8a0910f1d6513d03e6c70d21fb98bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Tue, 3 Jun 2025 05:01:19 -0700 Subject: [PATCH 1/2] Document `UseSizeOptimizedLinq` --- 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 991fefb7fa11f..d77b636fcc11c 100644 --- a/docs/core/deploying/trimming/trimming-options.md +++ b/docs/core/deploying/trimming/trimming-options.md @@ -77,6 +77,7 @@ Several feature areas of the framework libraries come with trimmer directives th | `MetricsSupport` | When set to `false`, removes support for instrumentation. | | `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 may not be possible to natively compile some applications with this set to `false`. | | `UseSystemResourceKeys` | When set to `true`, strips exception messages for `System.*` assemblies. When an exception is thrown from a `System.*` assembly, the message is a simplified resource ID instead of the full message. | | `XmlResolverIsNetworkingEnabledByDefault` (.NET 8+) | When set to `false`, removes support for resolving non-file URLs in . Only file-system resolving is supported. | From 90dce960ebd2e35043d686a6176745e39aef97c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Thu, 5 Jun 2025 13:00:28 -0700 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 d77b636fcc11c..1f31862a6377f 100644 --- a/docs/core/deploying/trimming/trimming-options.md +++ b/docs/core/deploying/trimming/trimming-options.md @@ -77,7 +77,7 @@ Several feature areas of the framework libraries come with trimmer directives th | `MetricsSupport` | When set to `false`, removes support for instrumentation. | | `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 may not be possible to natively compile some applications with this set to `false`. | +| `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`. | | `UseSystemResourceKeys` | When set to `true`, strips exception messages for `System.*` assemblies. When an exception is thrown from a `System.*` assembly, the message is a simplified resource ID instead of the full message. | | `XmlResolverIsNetworkingEnabledByDefault` (.NET 8+) | When set to `false`, removes support for resolving non-file URLs in . Only file-system resolving is supported. |