Quite often I run into items in the .NET framework that have little or no code examples on how to use the features. On other occasions, there are plenty of examples, but none of them seem to work as prescribed.
Case in point: The System.Diagnostics.ConsoleTraceListener class.
From everything I've read and every code example I've seen, when I'm doing something like the following:
ConsoleTraceListner listener = new ConsoleTraceListener();
listener.WriteLine("Yo");
...I should see a console window pop up with "Yo". However instead of that expected output, it's writing "Yo" to the Visual Studio Output where one would see normal Trace/Debug messages.
I've attempted every itteration of examples I've Googled for including config file setup of the appropriate listener, adding the listener to the Trace.Listeners collection, custom ConsoleTraceListener types, etc. I've even just compiled to a Release version and ran the executable (which does absolutely nothing).
What the heck am I missing?