繁体   English   中英

sonarqube中的C#项目

[英]C# project in sonarqube

当我运行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#项目上运行分析?

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

事实是,SonarQube C#插件实际上是针对Windows .NET生态系统的,您可以在其中构建/维护.NET项目。 它必须与SonarQube Scanner for MSBuild一起使用 ,这需要MSBuild 14.0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM