问题描述
似乎在 VS 2019(企业版?)中,有一种新型的控制台应用程序主机可用,在我停止调试后它甚至保持未关闭状态.启动多个项目时,第一个启动的控制台应用程序将是这种新类型.
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.
我正在寻找一种方法来防止 VS 将此控制台用于主"项目,并且只需为我正在启动的每个项目使用相同的控制台.我在 VS 2017 中使用 4 个 ASP.NET Core 项目启动了相同的解决方案,Visual Studio 没有启动任何标题中带有dotnet.exe"的控制台.所以对于这似乎是 2019 年的新事物.
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.
那么有没有办法阻止 Visual Studio 2019 启动这个新控制台?
So is there a way to prevent Visual Studio 2019 from starting this new console?
推荐答案
在Tools->Options->Debugging->Debugging Stop时自动关闭控制台
下有一个设置,会恢复旧行为.
There's a setting under Tools->Options->Debugging->Automatically close the console when debugging stops
that will restore the old behavior.
这篇关于如何防止 Visual Studio (2019) 打开“VS 调试控制台"?只使用旧的 .NET Core 主机控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!