Sonarcloud-scan not scanning c# files in bitbucket pipelines

Bitbucket pipline running sonarscan pipe

      - ./
      - pipe: sonarsource/sonarcloud-scan:1.2.2
      - pipe: sonarsource/sonarcloud-quality-gate:0.1.4

getting error in the pipeline log

INFO: Sensor C# [csharp]
WARN: Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or VB.NET, you must use the SonarScanner for .NET 5.x or higher, see
INFO: Sensor C# [csharp] (done) | time=1ms

Code is c# dotnet core 3.1
Not sure why is suggesting a different SonarScanner as I have no control over that - the sonarcloud-scan pipe is pre-configured.



You won’t be able to analyze a .Net project using these preconfigured pipes.
You need to use the .Net scanner for this. Unfortunately we don’t have an official tutorial to set it up with Bitbucket pipeline yet but you might be able to get some inspiration from other users that managed to do it, like here:

1 Like