Hubert-Rybak/dotnet-warp

Additional console window if packing WPF Gui App

Opened this issue · 2 comments

Hello,
After successful dotnet-warp command when i run my packed app it will run just fine. Problem is it will also launch a additional console window. Is there a way to hide this console window?

obrazek

I've got that same issue. I tried the code referenced here but that didn't help. https://stackoverflow.com/questions/3571627/show-hide-the-console-window-of-a-c-sharp-console-application

This happened to me too. I was able to fix it after running dotnet warp by running:
editbin /subsystem:windows <output>.exe

I also set an application icon in csproj using <ApplicationIcon>Resources\Images\256_256px.ico</ApplicationIcon>. The application icon is visible in File Explorer for the output exe, but the output of dotnet warp the custom icon is not longer present.
image
I wonder if both of these issues are related?