Skip to content

<Question>Output Console.WriteLine #4568

Answered by RussKie
H1Gdev asked this question in Q&A
Discussion options

You must be logged in to vote

A console window is not shown for UI app by default. To show the console set the DisableWinExeOutputInference property to true in your project file.

<DisableWinExeOutputInference>true</DisableWinExeOutputInference>

This doc describes a workaround, and whilst it targets .NET 5.0, it also fixes the issue for .NET Core 3.1 and earlier.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@H1Gdev
Comment options

@RussKie
Comment options

RussKie Feb 15, 2021
Collaborator

@H1Gdev
Comment options

Answer selected by danmoseley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4567 on February 15, 2021 05:11.