I am attempting to make my GUI app have a CLI frontend (not the opposite).
I have been able to process arguments without an issue (thanks to System.Environment.GetCommandLineArgs()), but I am curious what the best way to gain access to write output to the console.
I have found reference to AllocConsole(), but it is unclear if this is the only method, as I'd much prefer something revealed in managed code.