Visual studio does not redirect console output of WPF app to the output window, for net core wpf desktop app

  • Thread starter Thread starter lionelberton1
  • Start date Start date
L

lionelberton1

Guest
Hello,

For a WPF app, visual studio used to redirect the console.writeline outputs to the "output" window inside the IDE.

For a net core WPF app, or a net framework WPF app using the new SDK csproj format, this is not happening anymore.

Only Debug.Writeline are redirected.

You can reproduce the issue with the code here:

http://dl.free.fr/vVXQVXZli


The wpfapp1 is a net core wpf app and does not behave as expected. The wpfapp2 is a net framework app using legacy csproj format is working as expected.

Thanks.

Continue reading...
 
Back
Top