在sonarqube C#项目 [英] C# project in sonarqube
问题描述
当我运行声纳亚军作一分析我简单的C#项目的分析错误终止许可SonarLint.Runner.exe否认:
When I run sonar-runner for an analysis my simple C# project the analysis terminate on error on SonarLint.Runner.exe of permission denied:
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:
This following is my 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但rebuil在每一个分析。
我如何在C#项目运行分析?
I try to act a chmod on SonarLint.Runner.exe but it is rebuil at every analysis. How can I run analysis on C# project?
推荐答案
C#项目的分析必须在Windows环境下完成的。这是失败,因为该项目是在Linux上进行分析。
Analysis of C# projects must be done on a Windows environment. Here it's failing because the project is analysed on Linux.
的事情是,SonarQube的 C#真正的目标是到Windows .NET的生态系统,这就是你好歹建立/保持.NET项目插件。它必须与 SonarQube扫描仪为的MSBuild ,这需要MSBuild的14.0。
The thing is that SonarQube C# Plugin really is targeted to the Windows .NET ecosystem, which is where you'd anyhow build/maintain .NET projects. It must be used with the SonarQube Scanner for MSBuild, which requires MSBuild 14.0.
这篇关于在sonarqube C#项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!