.Net 6/7 PublishSingleFile #4444
phuocminh6464
started this conversation in
General
Replies: 1 comment 1 reply
-
Publishing as a single file exe is discussed in #3407 .Net 5/6/7 should all behave the same in terms of settings. The publish args I'd recommend are at #3407 (comment) You will need to |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi everyone, my WPF app using net 7 and I want to publish app as single EXE file but after publishing I can not open the app. This is command I'm using
dotnet publish -c Release -f net7.0-windows -r win-x64 -p:PublishSingleFile=true
and the error details in Events Viewer.When I open publish folder, the files such as: CefSharp.Core.dll, CefSharp.Core.Runtime.dll, CefSharp.dll, CefSharp.Wpf.dll, etc are not pulished. However, if it remove
-p:PublishSingleFile=true
from the command, opening app is normal and those files exist in publish folder.What need I do to fix this issue?
Beta Was this translation helpful? Give feedback.
All reactions