Trimming reduces a .NET deployment package by removing assemblies unused by the application, then removing unused types and members within retained assemblies. section 12.1.5
Use trimming to manage deployment-size trade-offs:
- Reduce the disk-space cost of self-contained applications, especially when deploying multiple applications to one hosting server. section 12.1.5
- Balance smaller packages against publishing choices based on server control, available runtime packages, hardware, disk space, and memory. section 12.1.5
Multiple self-contained applications
A hosting server running several self-contained .NET applications can use trimming to reduce the repeated disk-space cost of bundled runtime resources and application libraries. section 12.1.5
