Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

trimming

Cutting unused code out of a self-contained app so it ships smaller.

Trimming statically removes unreachable IL from a self-contained app; code reached only through reflection can be removed too, which the trim analyzer warns about (IL2xxx).

Loading interactive…

Examples

  • dotnet publish -r linux-x64 -p:PublishTrimmed=true, and every IL2xxx warning marks code that may break once trimmed.

Read the full section →