-
Notifications
You must be signed in to change notification settings - Fork 91
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
Can the runner window start hidden? #31
Comments
Yes, on Windows you can disable this behavior with the editbin utility. It's described here, scroll down to Change the Generated Exe to Hide its Console Window: https://blog.dangl.me/archive/transform-your-aspnet-core-website-into-a-single-file-executable-desktop-app/ |
For integration into warp no matter the host platform, it should be possible to port NSubsys's code that parses PE files and updates the subsystem. Should this be a command-line option, are there cases where it's useful to show the console window? See https://github.com/jmacato/NSubsys/blob/b8d26cfe049299eb657411a1cd1d5223cc476955/NSubsys.cs#L49 and https://github.com/jmacato/NSubsys/blob/b8d26cfe049299eb657411a1cd1d5223cc476955/PeUtility.cs |
Any of the posted answers can solve the original problem. Don't know if it should be added to warp since it can be automated easily. It's up to the decision of the creator of warp. Closing this since it's has valid workarounds. |
So the workaround is to download and install Visual Studio? As workarounds go, this is not a very appealing one. @dgiagio If we are talking about running warp as a part of automated/containarized build pipeline, this is especially unworkable ;( |
For anyone discovering this now who don't want to install Visual Studio in order to download editbin, I took NSubsys's implementation and repurposed it as a simple cross platform console app. https://github.com/joshua-software-dev/SharpGuiConverter There are versions for Linux, Mac OS, and Windows. There is also a statically linked binary for use in muslc containers. The statically linked version gave me a lot of compiler warnings, but none seem to be relevant to its function, and it worked fine in my testing on both glibc and muslc containers. Submit an issue if you encounter any problems. |
The above solutions don't work for me at all. |
same to you. have you found any solutions? |
I'm trying Warp with a WPF app in net core 3. When it runs it shows a console window followed by the WPF window, wich runs as expected.
There is a way to hide the runner window? It is confusing as it stays open as the WPF app is running.
The text was updated successfully, but these errors were encountered: