title: C#: Is it possible to have a single application behave as Console or Windows application depending on switches?
body: <p>I have a simple application that I would like to sort of automate via switches. But when I do run it via switches I don't really want a user interface showing. I just want it to run, do it's job, print stuff out in the console, and exit. On the other hand if I don't run it with any switches I want the user interface to pop up. And in this case I don't really want a console window hanging around in the background.</p>
  
  <p>Is there any way I can do this, or do I have to create two separate projects, one Console Application and one Windows Application?</p>