title: No console output when using AllocConsole and target architecture x86
body: <p>I have a WinForms project, and if the user want's a debug console, I allocate a console with <code>AllocConsole()</code>.</p>
  
  <p>All console output works normally with the target architecture set to "Any CPU", but when I change it to "x86" it doesn't output anything (<code>Console.Read()</code> still works as expected). If I open the EXE directly, the output works. It looks like Visual Studio redirects it into it's own "Output" window.</p>
  
  <p>I also tried <a href="https://stackoverflow.com/questions/160587/no-output-to-console-from-a-wpf-application">this</a> answer, but it didn't work, I also tried <code>Console.SetOut(GetStdHandle(-11))</code>, which didn't work either.</p>
  
  <p>Setting the target architecture to 'Any CPU' is no option for me.</p>
  
  <p>So here are my two questions:</p>
  
  <ul>
  <li>Why is this only the case when the target architecture is set to x86?</li>
  <li>How can I output to my console when running inside of Visual Studio?</li>
  </ul>