SonarQube .Net scanner is not working with rake build

I am using SonarQube Community version , Sonar Scanner for dotnet(.NET 5,.NET Framework 4.6+).

We installed community edition and we were scanning C# project. Since our projects are built on rake tool. Our source code was not scanned properly.

No protobuf files are getting created.

Giving below error:
WARN: No protobuf reports found. The C# files will not have highlighting and metrics.
WARN: No Roslyn issue reports were found. The C# files have not been analyzed.
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=3ms

Can anyone help to resolve this issue ?

Hey there.

What command are you running to execute analysis?