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 | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. Brian Zarb 1,695 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.