So we are integrating the Sonar scan for our .NET codebase in azure repos , and we established a pipeline that it scans the code and publishes the results to the sonar dashboard .
However , scan results are not visible . In the sonar dashboard it shows the .cs files but does not scan them .
Please advise how to fix this ?
Note : We are using sonar Comunnity edition for this .
I wonder if analysis thinks your code is all test files. That would explain why no Lines of Code are detected (because they’re all seen as Lines of Tests).
2022-08-23T12:47:43.1190472Z 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