title: TextWriterTraceListener (Debug Output) to VS 'Output', not console
body: <p>I wrote a DLL file that does some database work, and have tested / used with a winforms app, and was sending important debug messages through <code>Console.WriteLine("xxx");</code>.  Now I'm using the DLL in another project that is a <em>Console Application</em> - I'm sure you can imagine my surprise to see all the extra output in the console!  Long story short, <strong>I need to be able to see debug output in the 'Output' section in Visual Studio, but not in my console.</strong>  I have looked into this and have changed code around to use <code>Debug.Write("xxx");</code> and testing with the code below, however I need to know what to replace <code>System.Console.Out</code> with to achive the desired reports.</p>
  
  <pre><code>TextWriterTraceListener myWriter = new TextWriterTraceListener(System.Console.Out);
  Debug.Listeners.Add(myWriter);
  Debug.Write("Important Message");
  </code></pre>
  
  <p>Thanks -- Andrew</p>
  
  <p>TL;DR;  Need to output to VS 'Output' window, not console or file.</p>