Publish Options: Framework-Dependent, Self-Contained, Single-File, Trimming, ReadyToRun and Native AOT
A framework-dependent publish gives the smallest output and gets runtime patches from the machine; self-contained, single-file, trimming and Native AOT make shipping easier but tie patches to republishing. We publish bookstore-admin in seven modes and measure size, startup and memory, and show with real output why trimming without R2R slows startup, how to move trim warnings into the build, AOT's cross-OS limit and a publish profile.
15 Nov 2026
·
11 min
·
8