在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。
- ListViewItem IsSelected Binding – 适用于WPF,但不适用于WinRT
- 为什么Nullable HasValue属性不会在Null上抛出NullReferenceException?
- Xamarin形成更改导航栏的背景颜色
- LINQ方法通过函数连接一系列中的每个n个元素,然后将这些结果重新聚合到一个新列表中?
- 如何检测浮点数在C#中是否有重复的十进制扩展?
- 添加.NET Framework DLL作为对Windowsapp store应用的参考
- 无法在Mono中加载’System.Web.Http.WebHost.Routing.HttpRouteExceptionHandler’类型
- 在Identity Framework的方法中,HttpContext.Current为null
- TFS 2010:如何使用标签在两个版本的应用程序之间生成更改日志(即工作项列表)?