我在TFS 2015上集成了SonarQube来构建项目时遇到了问题。
当我在没有SonarQube的情况下构建这个项目时,它构建得很好。但是,当SonarQube与此构建一起运行时,其中一个项目文件无法编译(具体来说,它是一个单元测试项目)。我收到以下错误:
D:\Builds\....\Project\.sonarqube\bin\targets\SonarQube.Integration.targets (235, 0)
Could not write lines to file "D:\Builds\.....\.sonarqube\out\\f_AnyCPU_Release_0213\FilesToAnalyze.txt".
The process cannot access the file 'D:\Builds\.....\Project\.sonarqube\out\f_AnyCPU_Release_0213\FilesToAnalyze.txt'`
because it is being used by another process.
[D:\Builds\.....\Project\\src\Apps\Solution\obj\Debug\Fakes\spi\f.csproj]
如果有人能提供一些关于为什么会发生这种情况的提示,我们将不胜感激。我尝试用我编写的一些项目重新创建这个错误,但似乎没有发生。它可能是项目特有的。