I am getting this error when running analysis in publish mode with the msbuild sonar scanner on a c# project. Any idea what causes it?
Full command line output in attached (cmd.txt)
SonarQubeAnalysisConfig from .sonarqube\conf directory is attached (SonarQubeAnalysisConfig.xml)
Unhandled Exception: System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at Newtonsoft.Json.JsonTextReader.ParseUnicode()
at Newtonsoft.Json.JsonTextReader.ReadStringIntoBuffer(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseString(Char quote)
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.ReadInternal()
at Newtonsoft.Json.JsonTextReader.Read()
at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r)
at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader)
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader)
at Newtonsoft.Json.Linq.JObject.Parse(String json)
at SonarScanner.Shim.RoslynV1SarifFixer.IsValidJson(String input)
at SonarScanner.Shim.RoslynV1SarifFixer.LoadAndFixFile(String sarifFilePath, String language, ILogger logger)
at SonarScanner.Shim.PropertiesFileGenerator.TryFixSarifReport(ILogger logger, ProjectInfo project, IRoslynV1SarifFixer fixer, String language, String reportFilePropertyKey)
at SonarScanner.Shim.PropertiesFileGenerator.TryFixSarifReports(ILogger logger, IEnumerable`1 projects, IRoslynV1SarifFixer fixer)
at SonarScanner.Shim.PropertiesFileGenerator.GenerateFile(AnalysisConfig config, ILogger logger, IRoslynV1SarifFixer fixer)
at SonarScanner.Shim.SonarScannerWrapper.Execute(AnalysisConfig config, IEnumerable`1 userCmdLineArguments, ILogger logger)
at SonarQube.TeamBuild.PostProcessor.MSBuildPostProcessor.InvokeSonarScanner(IAnalysisPropertyProvider cmdLineArgs, AnalysisConfig config)
at SonarQube.TeamBuild.PostProcessor.MSBuildPostProcessor.Execute(String[] args, AnalysisConfig config, ITeamBuildSettings settings)
at SonarQube.Bootstrapper.BootstrapperClass.PostProcess()
at SonarQube.Bootstrapper.BootstrapperClass.Execute()
at SonarQube.Bootstrapper.Program.Execute(String[] args, ILogger logger)
at SonarQube.Bootstrapper.Program.Main(String[] args)