在sonarqube的C#项目

当我运行sonar-runner进行分析时,我的简单C#项目分析终止于SonarLint.Runner.exe上的错误被拒绝:

ERROR: Error during SonarQube Scanner execution ERROR: java.io.IOException: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied ERROR: Caused by: Cannot run program "/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe": error=13, Permission denied ERROR: Caused by: error=13, Permission denied 

有效

 -rw-r--r-- 1 root root 19456 Apr 5 11:14 .sonar/Lint.Runner/SonarLint.Runner.exe 

以下是我的sonar-project.properties:

 # Root project information sonar.projectKey=ArturiCSharpSort sonar.projectName=ArturiCSharpSort sonar.projectVersion=1.0 # Some properties that will be inherited by the modules sonar.sources=. #List of the module identifiers #sonar.modules= # Properties can obviously be overriden for # each module - just prefix them with the module ID #module1.sonar.projectName= #module2.sonar.projectName= 

我尝试在SonarLint.Runner.exe上执行chmod,但它会在每次分析时重建。 如何在C#项目上运行分析?

必须在Windows环境中分析C#项目。 这是失败的,因为在Linux上分析了项目。

问题在于SonarQube C#插件真正针对Windows .NET生态系统,无论如何您都可以在其中构建/维护.NET项目。 它必须与用于MSBuild的SonarQube扫描仪一起使用,这需要MSBuild 14.0。