Related: Should I include a command line mode in my applications? How to grab parent process standard output? Can a console application dete
Just build it as a Windows Forms app, but don't give it a GUI. Unfortunately then you won't get any console output when it's run from the command line either... is that a problem?