foreyez foreyez - 1 year ago 161
C# Question

Why doesn't Console.Writeline, Console.Write work in Visual Studio Express?

I just open a console application and I type


But the output window doesn't show this. I go to the output window with Ctrl+W,O

But nothing shows up when I run my program, am I nuts or is this not supported in the visual studio 2010 express?

Answer Source

Console.WriteLine writes your output to the console window opened by your application (think black window with white text that appears when you open the Command Prompt.) Try System.Diagnostics.Debug.WriteLine instead.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download