MSIX packaged app has a huge size #3791
Replies: 1 comment 1 reply
-
This isn't actually a universal problem. As a bit of an example, a small WinUI 3 C++ application, fully bundled with all 3 supported platforms is only ~2.5MiB. This is not an example of a real world application, but this is just to illustrate that this isn't a purely WinUI 3 project problem. IIRC, the root of this problem is how the C# side of things works. If you look at one of the .pubxml files:
Do you see the SelfContained property? I believe this copies the entire .NET runtime into the package, thus removing the dependency on the system. What's more, the C# projection adds a fair bit more on top of this. This is why .NET Native AOT and IL trimming are sought after. |
Beta Was this translation helpful? Give feedback.
-
I am migrating my UWP/DesktopBridge package to a WinAppSDK desktop packaged app (through a WAP project in VS) and so far can only see major advantages of doing this. There is however 1 serious "issue" that concerns me and that is package size.
My current UWP/DesktopBridge app available on the Microsoft Store has a MSIX package that has a size of 40 MBytes.
The WinAppSDK/WinUI3 migrated version with the same functionality has a size of 261 MBytes.
The issue has already been brought up in 2020 for WinUI3 (see #2579) but it remains unclear whether this is something to worry about or not.
I can imagine people looking for an app in the Microsoft Store and seeing a size of +260 MBytes wondering why this is so big.
Is it possible to somehow reduce the size?
Is there somewhere a good description of how we have to understand this and how the Windows system deals with installing these packages. E.g. does it load everything? Is the final footprint after installation less? How does it work when the app was using WinAppSDK 1.3 and gets updated and now uses 1.4?
The big question really is: Is this something we have to be concerned about? Will it hinder deployment/installation?
Beta Was this translation helpful? Give feedback.
All reactions