Can not delete SonarScanner.MSBuild.Tasks.dll

I am using

Tool ‘dotnet-sonarscanner’ was reinstalled with the latest stable version (version ‘5.9.1’).

It creates a .sonarqube directory within my project directory. When I try to cleanup this directory I cannot delete the following file:


I need a system reboot to be able to delete this file. Any thoughts on what’s holding onto this file handle? I dont’ have the permissions to search processes on my machine so it’s a challege to know what has this file.


The dll is used by msbuild. So killing msbuild and dotnet processes should free up the file.

Best, Martin