✅ Reliably kill .NET processes
Hello there,
I'm figuring out C# on Linux and figuring out how to attach debugger etc to VSCode. In this I've faced this issue a few times, where the .NET process keeps running (by mistake) after I kill the terminal, I can fix this with a restart, but I wanna know if there is a reliable way to kill these process(es) from the terminal
5 Replies
probably just do it with a shell invocation
pkill is the command I think
Yeah that's what I'm currently doing, but wanted to know if there is a dedicated .NET kill command
it would be on Process them
Process.Kill
How to kill a process knowing the name - Microsoft Q&A
Microsoft Q&A is the best place to get answers to all your technical questions on Microsoft products and services. Community. Forum.
Ah I see thanks
ig a bash script would just be easier tbh
I got what I was looking for