Jenkins 的 SonarQube 扫描器,出现 MSBuild.SonarQube.Runner 错误

SonarQube Scanner for Jenkins with MSBuild.SonarQube.Runner error

SonarQube 服务器运行良好,但是当我使用命令行时
"SonarQube.Scanner.MSBuild.exe begin /k:"org.sonarqube:sonarqube-scanner-msbuild" /n:"test" /v:"1.0" " 我收到这个错误,如何解决?谢谢
使用: Windows Server 2012 R2

来自 Jenkins 的控制台输出日志: 建设中工作区 C:\Program Files (x86)\Jenkins\workspace\CSS_SQ

C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
C:\Program Files\Git\bin\git.exe config remote.origin.url http://196.196.30.71:3000/megasilver/CSS.git # timeout=10 Fetching upstream changes from http://196.196.30.71:3000/megasilver/CSS.git
C:\Program Files\Git\bin\git.exe --version # timeout=10
C:\Program Files\Git\bin\git.exe fetch --tags --progress http://196.196.30.71:3000/megasilver/CSS.git +refs/heads/:refs/remotes/origin/
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision 7f08fd9d8f8d7f07ce0627fb98eb02f6f58a1256 (refs/remotes/origin/master) Commit message: "test"
C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
C:\Program Files\Git\bin\git.exe checkout -f
7f08fd9d8f8d7f07ce0627fb98eb02f6f58a1256 C:\Program Files\Git\bin\git.exe rev-list 7f08fd9d8f8d7f07ce0627fb98eb02f6f58a1256 # timeout=10 Injecting SonarQube environment variables using the configuration: SonarQube [CSS_SQ] $ "C:\Program Files (x86)\Jenkins\tools\hudson.plugins.sonar.MsBuildSQRunnerInstallation\SonarQube_Scanner_for_MSBuild\MSBuild.SonarQube.Runner.exe" begin /k:org.sonarqube:sonarqube-scanner-msbuild /n:test /v:1.0 /d:sonar.host.url=http://196.196.30.71:9000/ ********
未處理的例外狀況: System.MissingMethodException: 找不到方法: 'System.String System.String.Format(System.IFormatProvider, System.String, System.Object, System.Object)'。
於 SonarQube.Common.ConsoleLogger.GetFormattedMessage(String message, Object[] args)
於 SonarQube.Common.ConsoleLogger.LogInfo(String message, Object[] args)
於 SonarQube.Common.Utilities.LogAssemblyVersion(ILogger logger, Assembly assembly, String description)
於 SonarQube.Bootstrapper.Program.Main(String[] args)
於 SonarQube.Old.Bootstrapper.Program.Main(String[] args)
ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 255)
Finished: FAILURE

SonarQube Scanner for MSBuild 需要 .NET 4.6 或更高版本。请确保它已安装在您所有的构建机器上。