Sometimes, after the compilation of my solution in Visual Studio I have several MSBuild processes still running.
They take some RAM and resources, so I would like to know if it is safe to stop them?
Currently, I've tries to close them manually and nothing bad happened. But I'd like to know for sure.
Also, is there some way to stop these process with one action? Some kind of script? It's very tedious to close all of them manually.
To kill running msbuild processes, you can run something like taskkill /F /im msbuild.exe
(cmd) or Stop-Process -Name MSBuild
(powershell).
Another option is to turn off "node reuse" in msbuild (link) to prevent msbuild from sticking around after the build is complete: