Marco Siffert
Marco Siffert

Reputation: 555

How can I prevent Visual Studio (2019) from opening "VS Debug Console" and just use the old .NET Core Host console?

It seems like with VS 2019 (Enterprise?), there is a new type of console application host available that even stays unclosed after I stop debugging. When starting multiple projects, the first console application that starts up will be of this new type.

enter image description here

I am searching for a way to prevent VS to use this console for the "main"-project, and simply use the same console for every project I am starting. I have started the same solution with 4 ASP.NET Core projects inside VS 2017 and Visual Studio did not start any console with 'dotnet.exe' in the title. So for is seems like this is a new thing in 2019.

The reason for this question is because I am having some trouble with this new console. The project often does not start at all and the colors of the console are all green. But that shouldn't be topic of this question.

So is there a way to prevent Visual Studio 2019 from starting this new console?

Upvotes: 3

Views: 3419

Answers (2)

robert trout
robert trout

Reputation: 1

It certainly does not fix the problem (VS 17.11.4).

I resorted to calling OpenProcesses and killing VsDebugConsole. That fixed the problem.

It is part of a gross problem with windows-11, namely start does not work and cmd.exe leaves zombie copies of itself under all sorts of circumstances.

Is there something wrong with forward compatibility ? However stupid cmd.exe is we have built systems around its known behavior. Changing such a basic tool is unacceptable.

Upvotes: 0

Jimmy
Jimmy

Reputation: 28386

There's a setting under Tools->Options->Debugging->Automatically close the console when debugging stops that will restore the old behavior.

Upvotes: 6

Related Questions