MS Store + WinUI3 + Win32 + CS : How to package .net framework and WebView2 dependencies. #3911
Replies: 8 comments 13 replies
-
All of the packages I generate for C# has the .NET runtime as part of them. What's more, the publish profile that is part of the C# project enables SelfContained by default, meaning that this is the default layout.
Did you disable SelfContained? There is also an issue using the WebView2 package along with the Windows App SDK package because the Windows App SDK also contains a version of WebView2, so this is likely going to win out. |
Beta Was this translation helpful? Give feedback.
-
Well the "Package & Publish" does not have any such options. <---This is the one I use to generate the .msix that I upload to the store. "Publish" will put .exe and .dll in a folder no packages. |
Beta Was this translation helpful? Give feedback.
-
I do have the SelfContained to true. But Publish is useless because it does not generate a .msix |
Beta Was this translation helpful? Give feedback.
-
1- Release Thanks |
Beta Was this translation helpful? Give feedback.
-
Ok I confirm that all the procedures above DO NOT WORK. When on the store, the poor innocent users will be asked to go download and install the .net framework by themselves. Imagine a store that does not install dependencies in 2023 (almost 2024). I guess if you are still using Windows in 2023, you deserve it. No wonders techniciens always recommend windows, it never works like the other modern OS. |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this issue right now, having to get an app update recertified by Microsoft and they're bringing it up on:
I've tried following their guides to use this as self-contained, which does increase the number of dlls in the msix package, but when testing it on a fresh Windows 11 VM it still asks the user to install the runtime on first load of the app. This is the article I've been following and I've made the same two changes it suggests: Definately makes a difference, but just doesnt seem to contain the desktop runtime. Anyone else come across this or have a workable solution? |
Beta Was this translation helpful? Give feedback.
-
Why can't microsoft VS Studio do everything that needs to be done for us like Xcode and Android Studio do? Hey Microsoft, you know that the Android Store, Linux Stores and Apple App Store all install everything the app needs automatically? We are so tired about the low quality of the MS SDK and Tools, we are abandoning the Windows version of our app in favour of an Android app that will be installed on Windows 11 from the Amazon App Store. Windows native app is done, it is now a mobile and web world. |
Beta Was this translation helpful? Give feedback.
-
In the end I didn't need to do anything with publishing profiles, here are my settings from my csproj file, I've commented the important bits.
|
Beta Was this translation helpful? Give feedback.
-
When a customer get our app from the MS Store. He will be warned that a .net framework is required and the person will be asked to download and install it from the download folder. Once the app start, the WebView2 will just not work because MS did not bother to do anything (very professional).
You must install .NET Desktop Runtime to run this application.
...
6.0.21
Contrary to all App Store on the planet for the past 15 year (Android, Apple(macOS, iOS), Linux, PS5, Xbox, Nintendo), the MS store does not install dependencies automatically. First, MS Should stop behaving like an abandoned 90's legacy (CPM compliant) OS and fallow what the others are doing. Microsoft, wake up : your store should install dependencies and not bother their users and not bother the programmers either.
Is it possible to make everything works automatically like all other app stores?
I tried to package the .net framework (x64 + arm64) but nothing works.
There are no places in Visual Studio to do that and all the solution on the internet are dead ends.
A - How to make the store install all dependencies automatically without bothering the users.
B - How to package the frameworks in my app so the user does not have to do anything.
Beta Was this translation helpful? Give feedback.
All reactions