How do I run my .NET console app in the integrated terminal instead of opening a new windows terminal?

Nor dy 0 Reputation points
2023-09-19T18:13:44.7+00:00

Whenever you run or debug your .NET Console App, it opens a new windows terminal where the program is run. Isn't there a way to instead make that process headless and only show it in the integrated terminal or something? VSCode has a similar feature.

Developer technologies Visual Studio Other
Developer technologies C#
{count} votes

1 answer

Sort by: Most helpful
  1. Brian Zarb 1,685 Reputation points
    2023-09-19T20:48:55.67+00:00

    Follow these quick steps:

    1. Open your project in Visual Studio.
    2. Right-click your project in Solution Explorer and hit Properties.
    3. Head to the Debug tab.
    4. Find the "Launch:" dropdown (might be under "Console Application" or "Application").
    5. Choose "Integrated Terminal" or something similar from that dropdown.
    6. Save your changes.

    Voilà! Next time you run your app, it'll pop up in the integrated terminal.

    Pretty neat, right?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.