Customizing Trimming in .NET 5 - .NET Blog
This second post on app trimming goes into more detail about to annotate code to control the trimming process.