Soonts
Soonts

Reputation: 21956

Remove Press any key to continue

When I launch my .NET core 2.1 application from visual studio 2017 with Ctrl+F5, visual studio runs this command line:

"C:\Windows\system32\cmd.exe" /c ""C:\Program Files\dotnet\dotnet.exe" exec "path\to\my.dll" & pause"

How can I remove & pause from there, i.e. suppress these “Press any key to continue . . .” prompts?

Upvotes: 1

Views: 1870

Answers (1)

LJH
LJH

Reputation: 61

There is a setting within Tools|Options|Debugging|General:

enter image description here

Not sure if this might have the desired affect for you - it certainly works with Console apps in Visual Studio 2019. Visual Studio 2017 has the 'Automatically close the console when debugging stops' option.

Upvotes: 2

Related Questions