What is the best way to publish winui 3 app for the store? #3923
-
What is the best way to publish winui 3 app for the store?
my generated MSIX file is almost 80 mb, which is a bit much, and if I output for all three platforms the total is 200MB Is there a better way to publish? If I disable the WindowsAppSDKSelfContained, will the app be installed and run from the store without any problems? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
While it doesn't help having WindowsAppSDKSelfContained set to true, the real problem here is .NET. The C# package contains so much more compared to the C++ package, and some of those file in the C# package should look familiar. First is the C# projection, this takes up 8MiB. Second: Yes, that is the .NET runtime. If you look at the publish profile, the C# projects are publishing self contained. |
Beta Was this translation helpful? Give feedback.
While it doesn't help having WindowsAppSDKSelfContained set to true, the real problem here is .NET.
Suppose I create a new C# project using the C# version of the "Blank App, Packaged (WinUI 3 in Desktop)" template. Update all of the NuGet packages to the latest version. I then use the Package & Publish option to create the packages. Each individual .msix package will be around 48MiB.
Suppose I follow the same steps using a C++ project using the C++ version of the "Blank App, Packaged (WinUI 3 in Desktop)" template. Each individual .msix package will be around 150KiB.
If you look at the contents of the packages, you will notice a rather substantial difference.
The C# package contains so …