Reputation: 21956
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
Reputation: 61
There is a setting within Tools|Options|Debugging|General:
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