SonarCloud results not pushed

Based on the logs…

2023-06-13T20:22:49.4191369Z INFO: Parsing the Visual Studio coverage XML report D:\a\_temp\1c00fcfe-83c7-4067-884e-5f9c6a6e8308\VssAdministrator_fv-az625-697_2023-06-13.20_19_32.coveragexml
2023-06-13T20:22:52.6752587Z INFO: Adding this code coverage report to the cache for later reuse: D:\a\_temp\1c00fcfe-83c7-4067-884e-5f9c6a6e8308\VssAdministrator_fv-az625-697_2023-06-13.20_19_32.coveragexml
2023-06-13T20:22:52.7109370Z INFO: Coverage Report Statistics: 398 files, 0 main files, 0 main files with coverage, 398 test files, 0 project excluded files, 0 other language files.
2023-06-13T20:22:52.7111165Z WARN: The Code Coverage report doesn't contain any coverage data for the included files. Troubleshooting guide: https://community.sonarsource.com/t/37151
2023-06-13T20:22:52.7114089Z INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=3308ms

It looks like a coverage report is found, but none of the files inside have been identified as source files (but rather test files).

Elsewhere in your logs it looks like you might have a few projects being identified as test projects that shouldn’t be (based on project names and file paths)

2023-06-13T20:22:34.7231457Z INFO: Indexing files of module '##REDACTED##.Usages.BusinessLogic.Usages'
2023-06-13T20:22:34.7231881Z INFO:   Base dir: D:\a\1\s\code\##REDACTED##.Usages.DomainServices
2023-06-13T20:22:34.7232637Z INFO:   Test paths: UsagesServiceRegistrations.cs, UsagesV3Belgie/GetUsagesBelgieDt...
2023-06-13T20:22:34.7233250Z INFO:   Excluded sources: **/build-wrapper-dump.json, code/##REDACTED##.*.Api/**, code/##REDACTED##.*.Repositories/**, code/##REDACTED##.*.Client/**
2023-06-13T20:22:34.7233772Z INFO:   Excluded sources for coverage: code/##REDACTED##.Usages.Api/**, code/##REDACTED##.Usages.Repositories/**, code/##REDACTED##.Usages.Client/**
....
2023-06-13T20:22:34.7254043Z INFO: Indexing files of module '##REDACTED##.Usages.Api'
2023-06-13T20:22:34.7254402Z INFO:   Base dir: D:\a\1\s\code\##REDACTED##.Usages.Api
2023-06-13T20:22:34.7254826Z INFO:   Test paths: Controllers/DeviceScheduleController.cs, Controllers/EnergyRada...
2023-06-13T20:22:34.7255396Z INFO:   Excluded sources: **/build-wrapper-dump.json, code/##REDACTED##.*.Api/**, code/##REDACTED##.*.Repositories/**, code/##REDACTED##.*.Client/**
2023-06-13T20:22:34.7255859Z INFO:   Excluded sources for coverage: code/##REDACTED##.Usages.Api/**, code/##REDACTED##.Usages.Repositories/**, code/##REDACTED##.Usages.Client/**
....
2023-06-13T20:22:34.7268878Z INFO: Indexing files of module '##REDACTED##.Usages.BusinessLogic'
2023-06-13T20:22:34.7269266Z INFO:   Base dir: D:\a\1\s\code\##REDACTED##.Usages.BusinessLogic
2023-06-13T20:22:34.7269674Z INFO:   Test paths: BillBreakdownService.cs, Builders/ApigeeWeatherDayWeekMonthVari...
2023-06-13T20:22:34.7270329Z INFO:   Excluded sources: **/build-wrapper-dump.json, code/##REDACTED##.*.Api/**, code/##REDACTED##.*.Repositories/**, code/##REDACTED##.*.Client/**
2023-06-13T20:22:34.7270791Z INFO:   Excluded sources for coverage: code/##REDACTED##.Usages.Api/**, code/##REDACTED##.Usages.Repositories/**, code/##REDACTED##.Usages.Client/**

Notice how these projects identify Test paths. Are these projects that normally there would be code coverage reported on? It would be good to compare previous runs to see if this was the same when coverage was being reported to SonarCloud correctly.

I would also suggest looking at this documentation on the Analysis of product projects vs. test projects. This can be influenced by things like certain dependencies (like xunit) being added to your sub-projects, which means there might still be something that changed which you weren’t aware of.