C
C#2y ago
RDasher

✅ 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
Anton
Anton2y ago
probably just do it with a shell invocation pkill is the command I think
RDasher
RDasherOP2y ago
Yeah that's what I'm currently doing, but wanted to know if there is a dedicated .NET kill command
Anton
Anton2y ago
it would be on Process them Process.Kill
Anton
Anton2y ago
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.
RDasher
RDasherOP2y ago
Ah I see thanks ig a bash script would just be easier tbh I got what I was looking for
Want results from more Discord servers?
Add your server