1

使用 SonarQube 4.5.4 分析 ac# 项目时出现以下错误。我安装了 sonar-csharp-plugin-4.0。

   Sensor org.sonar.plugins.csharp.CSharpSensor@18cf794...
    10:48:17.000 DEBUG - Updating semaphore batch-com.test.sample
    10:48:24.571 ERROR - 
    10:48:24.879 ERROR - Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    10:48:24.879 ERROR -    at SonarQube.CSharp.CodeAnalysis.Runner.Program.Main(String[] args)
    10:48:27.146 DEBUG - Updating semaphore batch-com.test.sample
    10:48:37.211 DEBUG - Updating semaphore batch-com.test.sample
    10:48:37.714 DEBUG - Release semaphore on project : org.sonar.api.resources.Project@494546[id=1442,key=com.test.sample,qualifier=TRK], with key batch-com.test.sample
4

1 回答 1

0

自 4.0 版以来,C# 插件在 C# 本身(基于 Roslyn)中实现。

它要求在执行分析的机器上安装 .NET framework 4.5。

于 2015-06-10T14:22:11.580 回答