foreyez foreyez - 2 months ago 12
C# Question

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

I just open a console application and I type

Console.WriteLine("Test");


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

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.

Comments