I have an integration test harness which launches a console exe several times, simultaneously, each in its own appdomain. As soon as any one of the console exe applications exits from its appdomain, it causes stdin, stdout, stderr to shutdown for all of the remaining console exe appdomains as well. That is, the console is closed even though the application continues. It's too bad, because the other still-active "console apps" have additional material to output to the screen.
I'd like to know if there is a way to make the Console stay open, even when one of the console exe appdomains exits, until I am good and ready for the console to truly be shutdown.
For the curious, my integration test-harness is executing from the VS unit-test framework (vstesthost.exe). I don't think that detail is relevant to the question, but I'd like the console to stay open until my test is completed. Certainly the unit-testing framework should not rely on Console output for its value, but it helps when I'm debugging the tests. BTW, the fact that I'm running an integration test from a unit test framework is off-topic. :)