title: Avoiding "Press any key to continue" when running console application from Visual Studio
body: <p>When running a console application in Visual Studio via "Start without Debugging" (<kbd>Ctrl</kbd>+<kbd>F5</kbd>), the console remains open at the end of the run asking to</p>
  
  <blockquote>
    <p>Press any key to continue . . .</p>
  </blockquote>
  
  <p>thus requiring to activate the window and hit a key. Sometimes this is not appropriate. </p>
  
  <p><strong>Why this matters:</strong>
  At the very moment I write json serialisation code, my workflow goes like this:</p>
  
  <ul>
  <li>adapt c# code</li>
  <li>run a console app that writes file out.json</li>
  <li>view out.json in the browser with a json viewer</li>
  </ul>
  
  <p>do this again and again, no need to debug anything, just trimming serialisation and check output is good.</p>
  
  <p>It is workflows like this, where the "press any ..." behavior is hindering as it requires the steps</p>
  
  <ul>
  <li>activate the console window</li>
  <li>press key
  .</li>
  </ul>
  
  <p>No answers:</p>
  
  <ul>
  <li>Starting the application outside VS in a separate console is not an answer.</li>
  <li>Saying, you dont need this.</li>
  </ul>