No app uses all the features of all the included libraries. The .NET libraries are quite big, and we often only use a tiny subset. To reduce the size of an app, we need to remove any unnecessary code or libraries that exist in it.
To reduce the overall size of the app, we enable the linker. This is used to remove any unused code from our app, or from any assemblies that are used: