SonarQube Server runs fine,but when i use command line
"SonarQube.Scanner.MSBuild.exe begin /k:"org.sonarqube:sonarqube-scanner-msbuild" /n:"test" /v:"1.0" " I got this error, how to fix this? thanks
Using: Windows Server 2012 R2
Console output log from 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 requires .NET 4.6 or later. Please, ensure it is installed on all your build machines.