WPF Application add Console window for stdout etc.
I thought this would be quite hard to achieve, but it turned out to be easy. I wanted my WPF windows app to run with a standard console output so that I could see all tat was written to stdout via printf() etc from some C code that is linked in to the WPF app via a C++/CLI interface. To achieve this it was a matter of setting an application setting as detailed in this post:
http://blog.wpfwonderland.com/2009/03/01/adding-console-window-to-wpf-application/
In summary you just need to change the main App’s ‘Output Type’ setting to ‘Console Application’
Thanks to XAML Wonderland for the post!