C
C#3y 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
Anton3y ago
probably just do it with a shell invocation pkill is the command I think
RDasher
RDasherOP3y ago
Yeah that's what I'm currently doing, but wanted to know if there is a dedicated .NET kill command
Anton
Anton3y ago
it would be on Process them Process.Kill
Anton
Anton3y 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
RDasherOP3y ago
Ah I see thanks ig a bash script would just be easier tbh I got what I was looking for

Did you find this page helpful?