I have a WPF/.Net Core 3.1 app that I'm packaging as an MSIX for submission to the Store. If I publish the app as a sideloading .msixbundle then install it, the resulting directory is WindowsApps is huge. I assume that's all of .Net Core. But most of the .dlls I don't use. I can delete them for the directory and the app runs fine. Is there a way to reduce the size of the installation?
As a test, I created a default WPF/Core 3.1 app and a MSIX packaging project. No additional code was added. I then built, published and installed the app. The WindowsApps directory contained 499 files and was 136MB. I briefly looked at dotnet /p:TrimUnusedDependencies but it really did't seem to help much.
So, any way to reduce the size of the installation?