Lines of code empty for Analisis Net framework 4.8 Code

Hi everyone,

Actually I am Analyzing projects .net framework with GitHub Actions.
I have a problem using the sonar-scanner-9.0.0.100868-net-framework client, this in order to analyze a .net framework 4.8 code, the CS lines of code are not analyzed and only duplicate code is displayed:

I share the logs of the analysis performed:
logs_30954215876.zip (59.4 KB)

Is something missing in the configuration the solution NET?

Thanks.

Hi Edwin,

Welcome to our community!

I checked the logs and from what I can see, although 14 projects are detected, the analyzers do not raise any issues. I would need more details to understand why. Would it be possible to share with us the logs in the verbose mode? You can enable verbose mode by using /d:sonar.verbose=true parameter when calling the scanner begin command.

Hi Costin,

Attached log with verbose=true

Thanks,

Edwin
logs_31084806316.zip (620.3 KB)

Hi Edwin,

Thanks for sharing the logs with us. I took a look and the problem is not obvious. We need to investigate further.

Hi Edwin,

Would it be possible to share the dotnet build logs in the binary format? You can generate the binary format by providing the -bl: parameter like so: dotnet build --no-incremental -nr:false -bl:build.binlog.

This will give us more insight into why the analyzers are not properly linked and executed during the build.