maui
maui copied to clipboard
PublishSingleFile=true causes maui app to crash at launch
Description
Trying to set the PublishSingleFile
to true during publishing causes maui apps to crash at launch on Windows.
Also using dotnet --version it seems that I am on 6.0.400, which according to the version selection dropdown on the issue creation page is not the latest version. But I just updated VS to 17.3 GA today and freshly installed maui from that installer, so I don't know why I am not "up-to-date". Additionally, I am confused whether .net version and "maui version" are the same (i.e. always in sync). If not how do I know the version of maui on my machine?
Deploying unpackaged exe on Windows also has other issues, please refer to #6202 for details.
Steps to Reproduce
-
dotnet new maui
-
dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:PublishSingleFile=true
- run bin\Release\net6.0-windows10.0.19041.0\win10-x64\publish\NAMEOFAPP.exe
- Observe crash
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Windows, I was not able test on other platforms
Affected platform versions
Windows 11 10.0.22000 Build 22000, VS 17.3 GA
Did you find any workaround?
No
Relevant log output
No response
create a (full) memory dump with the help of Windows Error reporting service and analyze it with Windbg + pde.dll
Support for unpackaged apps is not quite there yet. The progress can be followed here: #3166