Sporadic Issue: Unable to delete the SonarAnalyzer.CSharp.dll from TeamCity build temp resulting incorrect report

Sonar versions:

Issue: The TeamCity build clean up(Swabra) feature fails to delete following SonarAnalyzer.dll files when VBCSCompiler process is in use during continuous analysis step. This resultingi in incorrect analysis report.

Workaround: Just re-run the CA manually with clean build as a workaround.

Failed to delete file:

Failed to delete file: TeamCity\BuildAgent\temp\buildTmp\VBCSCompiler\AnalyzerAssemblyLoader\GUID\2\SonarAnalyzer.dll

Unable to cleanup build temporary directory: TeamCity\BuildAgenttemp\buildTmp