title: How to properly stop running dotnet core web application?
body: <p>In Visual Studio 2017 and 2019 on Windows, I run <code>dotnet watch run</code> in the <strong>Package Manager Console</strong>. It launched kestrel for a dotnet core app, automatically disabled text edit in the console, and displayed a red button to stop command execution, but the button doesn't do anything. Also, the message is being displayed to use <kbd>Ctrl+C</kbd> but it doesn't work either.</p>
  <pre><code>Now listening on: http://localhost:20436 Application started. Press Ctrl+C to shut down.
  </code></pre>
  <p>Now there is an error when I try to launch the web app in Visual Studio because it is already running.
  I couldn't find a command like <code>dotnet stop</code> only <kbd>Ctrl+C</kbd>  which doesn't work in this case. I used Process Hacker to kill the <code>dotnet.exe</code> process but that doesn't seem right. What would be the best way to kill the running process?</p>