Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

VS2017: What to do to get Console.Writexxxx working

4.94/5 (10 votes)
23 Mar 2017CPOL 15.1K  
A hack so you can use Console.Write and Console.WriteLine in VS2017 WinForm programminfg

Did you notice that in VS 2017 your Console.Write and Console.WriteLine do not write anything to VS's 'Output Window ? Here's a fix.

You'll have to ask MS why this new "feature" has been spring on us, but, meanwhile, you can add this to your 'using directives

C#
using Console = System.Diagnostics.Debug;

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)