Environment:
- SonarQube - Developer Edition - Version 8.9.8 (build 54436)
- No plugin installed
- CFamily plugin version: 6.20.3.42796
- Sonar scanner: installed on a Windows 10 amd64 agent used by GitLab
Hi, we recently upgraded from SonarQube Developer Edition 8.9.7 to 8.9.8 (LTS) and we got an error which didn’t seem to happen before when calling the command dotnet-scanner end
.
We are compiling a Visual Studio project which contains a mix of C++ and C#, and the command we use is:
dotnet new tool-manifest
dotnet tool install --local dotnet-sonarscanner
dotnet tool restore
dotnet dotnet-sonarscanner begin -k ...
build-wrapper-win-x86-64.exe MSBuild.exe foo.sln
dotnet dotnet-sonarscanner end -d:sonar.login=...
Everything seems fine except the last call to dotnet-sonarscanner end
which gives us the following error:
Calling the SonarScanner CLI…
Le chemin d’accès spécifié est introuvable. (in English: the specified path could not be found)
Error: Could not find or load main class org.sonarsource.scanner.cli.Main
Caused by: java.lang.ClassNotFoundException: org.sonarsource.scanner.cli.Main
The SonarScanner did not complete successfully
Do you have an idea why this specific command-line would not complete? Or are we using the wrong wrapper for this kind of project?
Thanks.