I am trying to embed a console window into a WPF window. The following code is working with .NET 4.x, but not with .NET Core.
In .NET 4.x the console is s