In Visual Studio 2017 we saw the removal of Visual Studio Hosting Process. This supposedly came with the downside of Console.WriteLine no longer working for application that ran without an attached console (for example in WPF).
At least this has been my understanding. But this to my surprise doesn't seem completely true.
Creating a .NET Framework 4.8 WPF project in Visual Studio 2019 it seems to be able to use Console.WriteLine just fine (unexpectedly) and the results show up in the visual studio output window.
Meanwhile an identical project running .NET Core does not seem to print anything to the output console (as i would expect might i addd). In both cases the project is being ran with the output type set as Windows Application, so no console is being attached to my knowledge.
This is a rather peculiar issue, as i expected Console.WriteLine to not work in both cases. But it seems like there is no information to be found about why this works for a .NET Framework Wpf application, and more so why it would work under Framework but not under Core.
I myself normally use Debug.WriteLine and Trace.WriteLine, but would like to know why Console.WriteLine still (even in Visual Studio 2019) works even though it shouldn't.