Thanks Mickael.
“dotnet-sonarscanner” is recognized at command prompt.
However am confused. I created a new project to scan/analyze on our SonarQube server/instance with the intent to scan using ‘SonarScanner for MSBuild’.
On the ‘Analyze a project’ screen (attached), it pointed me to download Scanner for MSBuild. Clicking on the download button takes me to the page I referenced earlier. I installed the dotnet-sonarscanner tool which looks fine as I could not find any binary to download.
However on the ‘Analyze a project’ screen it asks me to execute the following commands in the root directory of my solution:
SonarScanner.MSBuild.exe begin /k:“PortalNew-SQ-DirectScan2” /d:sonar.host.url=“http://vpxxxx.xxxx.com:9000” /d:sonar.login=“my-token”
MsBuild.exe /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.login=“my-token”
But when I attempt #1 above, SonarScanner.MSBuild.exe is not found/recognized command.
The tutorial isn’t that much interactive, and we are only showing you here the default invokation of the SCanner, by calling it’s exe directly (which is part of the binaries that i talked about above).
In your case, simply copy the arguments, without the name of the exe, that are displayed in the boxes here, and paste them after “dotnet-sonarscanner” , you should be good doing it like that.