You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This compiles and runs, but the process isn't connected to the current console host, which causes no output to appear in the shell from which the console app was launched. I assume that's because the produced .exe uses the wrong subsystem.
I was able to work this around by not using UseWindowsForms and instead referencing the desktop framework:
The text was updated successfully, but these errors were encountered:
terrajobst
changed the title
Can't (easily) build a Windows console app that access the clipboard
Can't (easily) build a Windows console app that accesses the clipboard
Sep 15, 2020
I was trying to build a console app that accesses the clipboard. The easiest thing I could think of was this:
This compiles and runs, but the process isn't connected to the current console host, which causes no output to appear in the shell from which the console app was launched. I assume that's because the produced .exe uses the wrong subsystem.
I was able to work this around by not using
UseWindowsForms
and instead referencing the desktop framework:It seems to me that
UseWindowsForms
somehow overwrites theOutputType
property. Is this expected behavior?/cc @dsplaisted @rainersigwald
The text was updated successfully, but these errors were encountered: