© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
10 replies
sabertooth222

✅ WPF app keeps launching Console Window

Hey all, new here, I believe this is the correct forum to ask this. Anyways, I am building a wpf app as an output of "wpf app", yet whenever I launch the self contained exe after publishing it through vs 22 (to local, you can see the attached screenshots), the app keeps launching the console window on startup (and if I close the console window manually, the app closes with it). I'm having troubles finding an answer to this on the ol' google.

An even weirder confusing piece to me is while I normally work from my desktop/the screenshots are from my desktop, if I publish from my work laptop, the app doesn't launch a console window at all, just launches normally (and as far as I can tell, all of those settings are the same on the laptop as my desktop/screenshots).

Thanks for any advice or help.
publishprofile.png
appconf.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WPF Window Navigation
C#CC# / help
12mo ago
❔ wpf custom window
C#CC# / help
3y ago
WPF custom resizable window
C#CC# / help
2y ago
Resizing the Console window - Console Application
C#CC# / help
2y ago