In the 10.4 release of the SonarScanner for .NET, we implemented a mechanism that no longer uses the embedded SonarScanner CLI to communicate with SonarQube.
In this release, the SonarScanner CLI is no longer bundled with the SonarScanner for .NET. In scenarios where the new mechanism isn’t available, the SonarScanner CLI is now downloaded on demand from https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.2.4997.zip.
The download will happen if any of these conditions are met
- SonarQube Server version is lower than 10.6
/d:sonar.scanner.useSonarScannerCLI=true
was specified in the begin step to re-enable the old mechanism
Make sure binaries.sonarsource.com is reachable when you use the SonarScanner for .NET and the download of the SonarScanner CLI is needed.
New features
- SCAN4NET-720 - Download Scanner-CLI V5 instead of bundling it
- SCAN4NET-941 - Invoke the download of the scanner-cli if needed
- SCAN4NET-962 - Call ScannerCliResolver and set SonarScannerCliPath
- SCAN4NET-963 - Use AnalysisConfig.SonarScannerCliPath in SonarScannerWrapper.FindScannerExe
- SCAN4NET-942 - Create ITs that assert the scanner-cli download scenarios
- SCAN4NET-943 - Add a warning about scanner-cli support will be removed in the future
- SCAN4NET-955 - Remove the embedded scanner-cli.jar
Improvements
- SCAN4NET-978 - Add support for MSTest V4