SonarCloud and C# (.net framework)

I’m trying to analyse a C# project hosted on Bitbucket.

I get this error in the pipeline:
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 https://redirect.sonarsource.com/doc/install-configure-scanner-msbuild.html

This link gives instructions for SonarQube but it’s not very clear on what I need to configure in SonarCloud to make it scan my code.

Any hint ??

I tried to add this in my bitbucket-pipelines file but I get a “SonarScanner.MSBuild.exe: command not found” error

      - SonarScanner.MSBuild.exe begin /k:"my key" /o:"my organisation" /d:sonar.login="my token"
      - MSBuild.exe xxxx.sln /t:Rebuild
      - SonarScanner.MSBuild.exe end /d:sonar.login="My token"
      - pipe: sonarsource/sonarcloud-scan:1.2.1

Hello @regis

Did you try following the steps in this answer: Bitbucket Pipe + SonarCloud + C#/.net core - #11 by dibbdob ?