Must-share information (formatted with Markdown):
- SonarQube 10.3 on Windows, Bamboo add-on “Include Code Quality for Bamboo” v3.3.3 by Mibex Software
- how is SonarQube deployed: zip file
- what are you trying to achieve:
We need to install the Sonar scanner for dotnet and support dotnet core as well as MSBuild on Windows agents as well as dotnet core on Linux in addeition to the generic scanner - what have you tried so far to achieve this:
Downloaded the Dotnet Core 3.1+ media and installed on a dev Windows server
It is not clear how to install dotnet core scanner while staying the previous MSBuild scanner. It appears that the zipfile for dotnet core 3.1+ version 6.2 has files both for dotnet core and MSBuild. Our installer people are confused as to which files applies for what. Please advice.
We need to get an installation of dotnet core for Windows while keeping our current scanner for MSBuild. It seems there is a batch file in a folder called sonar-scanner-5.0.1.3006\bin, Is that the one to run for dotnetcore n Windows? In that case, which file is supposed to be executed for dotnet core on Linux? THe instruction is confusing. Why doies the Windows instruction for how to run a dotnet core scan on Windows point to a MSBuild file?
dotnet <path to SonarScanner.MSBuild.dll> begin /k:"project-key" /d:sonar.token="<token>"
dotnet build <path to project file or .sln file> --no-incremental
dotnet <path to SonarScanner.MSBuild.dll> end /d:sonar.token="<token>"