How can I find out which process is using my file when I get such an error on the Build :
Error 18 Unable to copy file “Some.dll” to “bin\Debug\Some.dll”. The
process cannot access the file ‘bin\Debug\Some.dll’ because it is
being used by another process.
This is definitely a trick I’ve had to use before.
I have all of SysInternals utilities in a folder that I’ve added to my PATH variable.
Specifically, you can use
handleavailable here to find what has the file open, then usePsKillavailable here to nix the culprit!EDIT
here’s an example output