Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PublishSingleFile=true causes maui app to crash at launch #9301

Closed
MaxWang-MS opened this issue Aug 10, 2022 · 2 comments
Closed

PublishSingleFile=true causes maui app to crash at launch #9301

MaxWang-MS opened this issue Aug 10, 2022 · 2 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working

Comments

@MaxWang-MS
Copy link

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

  1. dotnet new maui
  2. dotnet publish -f net6.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:PublishSingleFile=true
  3. run bin\Release\net6.0-windows10.0.19041.0\win10-x64\publish\NAMEOFAPP.exe
  4. 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

@MaxWang-MS MaxWang-MS added the t/bug Something isn't working label Aug 10, 2022
@jfversluis
Copy link
Member

Support for unpackaged apps is not quite there yet. The progress can be followed here: #3166

@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
@samhouts samhouts added the area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) label Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants