Automated deployments are great, until the moment your builds start to fail due to side-effects.
Last week when trying to build and deploy an application using Azure DevOps, the build failed with the following error messages in the log:
2019-02-20T20:47:57.0671661Z CSC : error CS0006: Metadata file 'D:\b\3\_work\_temp\.sonarqube\resources\0\Google.Protobuf.dll' could not be found
2019-02-20T20:47:57.0671661Z CSC : error CS0006: Metadata file 'D:\b\3\_work\_temp\.sonarqube\resources\0\SonarAnalyzer.CSharp.dll' could not be found
2019-02-20T20:47:57.0671661Z CSC : error CS0006: Metadata file 'D:\b\3\_work\_temp\.sonarqube\resources\0\SonarAnalyzer.dll' could not be found
I knew that I had seen this error before: https://bartwullems.blogspot.com/2018/11/tfs-build-sonarqube-error.html, but the things that worked then didn’t help.
After rebooting the server, cleaning the build folder, praying to all the known and unknown gods, I finally found a solution(read workaround) that worked:
I deleted all the .sonarqube folders found in the ‘_work’ directory of the build agent.
Anyone who has a ‘real’ solution?