I have some apps that, based on command lines when launched, will either display a form, or launch some commands via a console window. I just upgraded from VS2013 to 2019, and the console.writeline seems to be sending to the VS output debug instead of the actual console window.
For instance (Again this is a winform app not console):
Private Declare Auto Function AllocConsole Lib "kernel32.dll" () As Boolean
AllocConsole()
Console.WriteLine("Test")
This shows "Test" in the debug output window of VS and the console window remains blank.
I have read a bit about ways to re-direct the output, but it seems like there should be an easier way. Is there?
For instance (Again this is a winform app not console):
Private Declare Auto Function AllocConsole Lib "kernel32.dll" () As Boolean
AllocConsole()
Console.WriteLine("Test")
This shows "Test" in the debug output window of VS and the console window remains blank.
I have read a bit about ways to re-direct the output, but it seems like there should be an easier way. Is there?