How to disable web services running Visual Studio

I have a solution with about 10 web services and one website that calls them. All services should start when I click "start debugging", which is necessary and good. When I stop debugging, the services are still running. I can right-click on each of them in the system tray to close them, or I can close Visual Studio and they will automatically shut down. Is there a better way?

I found this SO message that says how not to start services in the first place, but I want the services to start (and even want them to continue to work more often.)

+3
source share
1 answer

PsTools includes pskill.exe, which will kill all running processes with the given name. If you're not interested in closing web services gracefully, this might be an option.

+1
source

Source: https://habr.com/ru/post/1754712/


All Articles