I have upgraded till 9.9.1- community edition but still it is not picking the .cs files from the project folder. I have attached the console output logs for your reference.
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 SonarScanner for .NET
FYI, I was already configured sonar-scanner-msbuild-5.13.1.76110-net5.0 this version dll in Jenkins. But still it was throwing the same error and later it got fixed I think and in the same logs it was telling that no protobuf found contact the community team.
Let me suggest attaching your full Jenkins logs (the 20 lines you shared won’t be enough to figure out what’s going on) including the execution of the Scanner for .NET and your .NET build.
The logs you shared also show you executing the sonar-scanner and not the Scanner for .NET.
Have you reviewed the Analyzing other project types section of the documentation for the Jenkins extension? It includes an example for using the SonarScanner for .NET.
I have now tried removing the SonarQube scanner from the Jenkins configs. But still same logs. I have attached the logs and the pipeline script as well for you reference. Jenkins_logs.txt (15.8 KB) pipeline {.txt (1.5 KB)