Hi all! I am running static analysis using the .Net SonarScanner (SonarScanner.MSBuild.exe)
I am able to run a successful .net scan when I supply only a single /d parameter (sonar.branch.name) via command line:
“C:\SonarScanner\SonarScanner.MSBuild.exe” begin /k:“MySonarProject” /d:sonar.branch.name=refs/heads/master
The problem is, I don’t know how to supply multiple parameters. Specifically, I want to provide a path to the OpenCover report xml file (via sonar.cs.opencover.reportsPaths setting). What is the correct syntax for supplying multiple different settings via command line? I tried semicolon separating the settings supplied after the /d with no success:
“C:\SonarScanner\SonarScanner.MSBuild.exe” begin /k:“MySonarProject” /d:sonar.branch.name=refs/heads/master;sonar.cs.opencover.reportsPaths=“Path to opencover report xml file”
I appreciate any guidance on how to tell sonarscanner where my opencover report is.