Scanner for .NET v11 released

Hi there,

We have just released the Scanner for .NET v11.

This version brings two things:

  • Support for MSTest 4, so that we correctly categorize your code when you use this test framework
  • Removal of the embedded SonarScanner CLI

The second item is technical and mostly transparent, but it is the reason for this to be a major version. We have changed how the scanner communicates with the server. For SonarQube Server 10.6 and above and for SonarQube Cloud, the scanner will not use the previously embedded SonarScanner CLI. This does not change how you use the scanner or what you can expect from it. However, if you are interacting with an older version, we will download a suitable SonarScanner CLI.

If you are in any of those two situations, you need to make sure your CI environment can access https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-5.0.2.4997.zip, as it is the URL from which we download the SonarScanner CLI. If it is not reachable, you will have to either upgrade your version of SonarQube Server, or stick to Scanner for .NET v10.4 until you have upgraded your server.

If for some reason you experience errors when the scanner communicates with a recent version of SonarQube Server (10.6+) or SonarQube Cloud, you can force usage of SonarScanner CLI by setting the /d:sonar.scanner.useSonarScannerCLI=true command line argument in the begin step.

Please send us your feedback and let us know if you experience problems with this version!

Denis

1 Like