title: Quick redirection of console I/O for a C# application
body: <p>I believe this is a well known issue of recent versions of Visual Studio IDE. If we try to put redirect commands in the "Command line arguments" box of the "Start Options" of the "Project Properties" page, like ">output.txt", then we get into trouble.</p>
  
  <p>We can get a workaround by unchecking "Enable the visual Studio hosting process" checkbox, but when we start the program "without debugging" (control-F5), the redirect doesn't work and ">output.txt" is returned as a program argument.</p>
  
  <p>The question is: how can we do the redirect to work in all configurations?</p>
  
  <p>Well, searching StackOverflow I found some options, and I devised a mean to do a quick and dirty solution, good for debug and a nop for release. I would like to share that with you.</p>