# trimming

A .NET publishing optimization that removes unused code from self-contained applications to reduce deployment size.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Stripping extra dependencies in .NET NativeAOT apps using linker substitutions

DevFeed: [Stripping extra dependencies in .NET NativeAOT apps using linker substitutions](<https://devfeed.tech/articles/stripping-extra-dependencies-in-net-nativeaot-apps-using-linker-substitutions-65543.md>)

Original publisher: [Read original article](<https://andrewlock.net/stripping-extra-dependencies-in-.net-nativeaot-apps-using-linker-substitutions/>)

Author: Andrew Lock

Published: 2026-10-06T10:00:00Z

Content type: tutorial

Language: en

Sources: [Andrew Lock | .NET Escapades](<https://devfeed.tech/sources/andrew-lock-net-escapades.md>)

Topics: [native aot](<https://devfeed.tech/topics/native-aot.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [.NET](<https://devfeed.tech/topics/net.md>), [linker](<https://devfeed.tech/topics/linker.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [azure](<https://devfeed.tech/tags/azure.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [core](<https://devfeed.tech/tags/core.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dotnet](<https://devfeed.tech/tags/dotnet.md>), [guide](<https://devfeed.tech/tags/guide.md>), [linker](<https://devfeed.tech/tags/linker.md>), [nativeaot](<https://devfeed.tech/tags/nativeaot.md>), [net-core](<https://devfeed.tech/tags/net-core.md>), [net-core-observability](<https://devfeed.tech/tags/net-core-observability.md>), [net-sdk](<https://devfeed.tech/tags/net-sdk.md>), [observability](<https://devfeed.tech/tags/observability.md>)

### AI overview

The article explains how linker substitutions in a .NET NativeAOT application can replace a runtime property check with a compile-time constant, allowing additional dead-code elimination and removal of unused dependencies. In the described case, the change reduced the binary size by 22-25%.

### Source excerpt

In this post I describe how to perform method-substitutions with the NativeAOT linker to remove additional dependencies that the linker couldn't see were unused

## Test what you ship: MSTest and Native AOT

DevFeed: [Test what you ship: MSTest and Native AOT](<https://devfeed.tech/articles/test-what-you-ship-mstest-and-native-aot-2952.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/mstest-source-generation/>)

Author: Amaury Levé

Published: 2026-09-03T18:00:00Z

Content type: article

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [native aot](<https://devfeed.tech/topics/native-aot.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>)

Tags: [deployment](<https://devfeed.tech/tags/deployment.md>), [generation](<https://devfeed.tech/tags/generation.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [native-aot](<https://devfeed.tech/tags/native-aot.md>), [net](<https://devfeed.tech/tags/net.md>), [source-generators](<https://devfeed.tech/tags/source-generators.md>), [testing](<https://devfeed.tech/tags/testing.md>), [trimming](<https://devfeed.tech/tags/trimming.md>)

### AI overview

MSTest 4.4 uses source generation to let test projects run as Native AOT executables, helping teams test under the same trimming and deployment constraints as their applications. The article explains that this can reveal application issues such as reflection-dependent serialization that managed test runs may miss.

### Source excerpt

MSTest source generation lets test projects use the same Native AOT and trimming deployment model as the applications they validate, while reducing reflection on the test execution path. The post Test what you ship: MSTest and Native AOT appeared first on .NET Blog.

## Julia 1.12 Highlights

DevFeed: [Julia 1.12 Highlights](<https://devfeed.tech/articles/julia-1-12-highlights-46358.md>)

Original publisher: [Read original article](<https://julialang.org/blog/2025/10/julia-1.12-highlights/index.html>)

Author: The Julia contributors

Published: 2025-10-08T00:00:00Z

Content type: release

Language: en

Sources: [JuliaLang - The Julia programming language](<https://devfeed.tech/sources/julialang-the-julia-programming-language.md>)

Topics: [The Julia Language](<https://devfeed.tech/topics/julia.md>), [releases](<https://devfeed.tech/topics/releases.md>), [trimming](<https://devfeed.tech/topics/trimming.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [release](<https://devfeed.tech/tags/release.md>), [trimming](<https://devfeed.tech/tags/trimming.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

An overview of the Julia 1.12 release, covering experimental code trimming, improved redefinition behavior, compilation tracing, and a separate interactive thread pool for more responsive REPL operations.

### Source excerpt

Highlights of the Julia 1.12 release.