Maui app crashed

Dani_S 4,521 Reputation points
2025-08-27T09:59:06.7766667+00:00

hi,

Action: I published maui app on net 9 as exe using this command using --self-contained:

dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true /p:PackageCertificateThumbprint="c01ba45666762f3615cf6813aeb4dc4b1919541d" -p:RuntimeIdentifierOverride=win10-x64 --self-contained

Problem: run this exe on some computers in windows 10 it works but in others not.

After installing in problematic computer ( windows 10) this files the problem solved:

Windows App Runtime 1.6

Microsoft Edge WebView2 Evergreen Runtime

Microsoft Visual C++ 2015–2022 Redistributable (x64)

When I published as exe using this command using --self-contained is not installed all the needed files in publish folder:

Windows App Runtime 1.6 +

Microsoft Visual C++ 2015–2022 Redistributable (x64) and so on ?

Your quick answer will be appreciated.

Developer technologies | XAML
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.