.cs files are not getting scanned

i am using a sonarqube to scan my .net code my sonarqube version is 10.7 community edition. and i am scanning using the sonarscanner for .net 9.0.2 SonarScanner for .NET

these are the steps i am using to scan

  1. SonarScanner.MSBuild.exe begin /k:“project-key” /d:sonar.token=“myAuthenticationToken”
  2. MSBuild.exe <path to project file or .sln file> /t:Rebuild
  3. SonarScanner.MSBuild.exe end /d:sonar.token=“myAuthenticationToken”

when i am executing this steps i geeting the sonarscan getting succed but the .cs extension files are not getting scanned

I have tried the maximum steps and adde the arguments to like sonar.inclutions, sonar.base directory but nothin worked

Hey there.

Often, this is the result of product projects being analyzed as test projects. I would suggest you review the wiki page and, if nothing else, try and force the categorization to product projects.

If that doesn’t help, I invite you to share your full build/scanner logs!