-
Notifications
You must be signed in to change notification settings - Fork 693
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
Published unpackaged app in Single File does not execute #10173
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you! Closed similar issues:
|
I've just taken a look at the second issue here. The difference is I get no error on launching the executable. It shows the "loading spinner" in the mouse, and then just disappears without ever launching. |
I've tried debugging the executable, separate from the project. Although I can't go on further because I don't have some pdbs for Seems like the inner exception is coming from Update 2: Update 3: |
IIRC this is still an unsupported scenario. |
It is supported afaik. Through the official C# discord server, another member confirmed that he could make an executable with this configuration work normally... |
Have you tried deleting the obj and bin folder? I have seen issues when switching between single file configuration turned on and off causing the resulting app to crash at start. |
Might want to look into this: microsoft/WindowsAppSDK#3886 (comment) |
@Balkoth |
Must have missed that, thanks. |
Attached is a project where i stripped everything i deemed unnecessary, and that runs when published as single file. Perhaps you can mod in your changes from your sample and see where it breaks down? TestPubSingleFIle.zip |
Describe the bug
Publishing an unpackaged application with it being a
Single File
makes the executable not being able to launch...Publishing it without it being
Single File
works correctly and it launches fine.Trimming and ReadyToRun have no change on whether the single file works or not.
Steps to reproduce the bug
Make a new profile (debug / release doesn't matter)
Target framework: net8.0-windows10.0.19041.0
Deployment mode: self-contained
Target runtime: win-x64
File publish options: Check Produce single file, the rest don't matter
Publish (it will build correctly) but opening the executable does not work.
Expected behavior
The executable to launch correctly.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.2: 1.6.241106002
Windows version
No response
Additional context
Windows version is: 23H2 (for some reason it wasn't an option in the select dropdown)
VS2022 version: 17.12.0
dotnet sdk: 8.0.404
Project is attached:
project.zip
(edit: had to reupload the project.zip because it didn't include the publish profile)
The text was updated successfully, but these errors were encountered: