Replies: 1 comment
-
in .NET 8 i manage to publish a single .exe with tags --self-contained true and -p:PublishSingleFile=true, though have no idea if this still works on .net 9, as there are some breaking changes for this use-case like this one: dotnet/docs#41366 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know if there is a way to publish app as single file executable. There are posts that says it's possible, but they are using old version of .NET and these commands don't even work for me.
I tried this which builds project successfully, but output is not single file executable.
dotnet publish -f net9.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true -p:PublishSingleFile=true
There is this issue which says its possible to publish it as single file, but it doesn't work properly, so he had to go back to
-p:PublishSingleFile=false
.I don't want to deal with msix or this chaos, which is created after using unpacked publish.
Since MAUI and windows is both MS products, it should be possible to generate single file executable in .NET9/10, right ? Right ?
Beta Was this translation helpful? Give feedback.
All reactions