Home: Ctrl+C in PMC does not close an app started via dotnet.exe run

Created on 1 May 2018  Â·  9Comments  Â·  Source: NuGet/Home

From email thread;

A customer is trying to use the .NET Core CLI from the Package Manager Console window in the latest release of VS 2017. When he executes “dotnet run” from the project root in his ASP.NET Core 2.0 MVC project, he’s unable to kill the process by pressing Ctrl + C. This should work, and I was able to reproduce it in 15.7 Preview 5.

Icebox VS.PMConsole Investigate Bug

All 9 comments

<3

Is there any resolution to this issue? I have to restart my laptop each and everytime I run the "dotnet run" command on my laptop

@bensongathee

Is there any resolution to this issue?

  • Kill .NET Core Host - for example, from Task Manager.
  • Don’t execute dotnet run in the PMC until it’s resolved. I know that’s inconvenient.

@Rick-Anderson what's the name of the .NET Core Host in task manager. Can't seem to locate it

image

The exe is dotnet.exe, but there are usually alot of those.

@Rick-Anderson works perfectly. Thanks you sir. Appreciate it

@Rick-Anderson
I've been using dotnet run command on PMC to run my Application in ASP.NET Core Web Application, but then switched to ASP.NET Web Application(.NET Framework) but it doesn't work. Any recommendations on how I can use dotnet run command to run my application in ASP.NET Web Application(.NET Framework)?

PCM after command "dotnet run" can't exit just by pressing Ctrl+C In VS2019. Only way kill service from Task Manager.

Was this page helpful?
0 / 5 - 0 ratings