I tested in different ways and I am still not sure the proper way of sonar analysis for mutliple projects with .NET. The problem is that sonar start analysis, creates cobertura files with sending to azure, but fails on an analysis steps with indexing some files from sources twice
For all the other scanner flavors you can/should specify sonar.sources, but SonarScanner for .NET doesn’t play nicely with it, and the error you’re seeing is the result.
as there are thousands of a lines I am not sure what to see (any errors appear, sometimes not found files i analyse step)
2026-02-02T13:13:04.6822904Z 14:13:04.681 The scanner engine has finished successfully
2026-02-02T13:13:04.6829584Z 14:13:04.681 Post-processing succeeded.
2026-02-02T13:13:04.6875552Z
2026-02-02T13:13:04.7080208Z ##[debug]Process exited with code 0 and signal null for tool 'C:\azgent\_work\_tasks\SonarCloudPrepare_\4.0.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
2026-02-02T13:13:04.7081437Z ##[debug]STDIO streams have closed and received exit code 0 and signal null for tool 'C:\agent\_work\_tasks\SonarCloudPrepare_number\4.0.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
what is weird and I am not sure that under TestResults are created coverage.cobertura in a two dirs = thePojectDir/svc***/ln/name_of_host/cobertura.coverage.xml and randomnumber/cobertura.coverage.xml
Hi, I’m not sure what the problem is exactly and, as Ann said, without logs it’s very difficult to figure out anything.
That being said, you mention Cobertura here, and you should know that the .NET analyzer does not support the Cobertura format yet. This is in the works for Q2, but not available yet.
I can’t provide the exact logs from reasons: there are thousands of lines, as testing last 4 hours and the second: internal company data.
As I saw configuration for other smaller projects with the one opencover file and single trx it wasn’t problem.
I am testing parrallel many projects in one repository under one source and I am not sure about syntax for similar case (in sonar website some directories are not send, but checking that one by line is impossible because of amount of data to check)
That’s why it would be easier to apply solution if any of you had a situation with generation many trx files and opencover during sonar scan in .NET repo
it’s extremely difficult to infer what is wrong.
Would it be possible to share the redacted pipeline so we get an idea of how it is organized and how you invoke the scanner, the build, and the coverage?
after set the branch in properties I received some results - sonar had problem with different than master, without removing sonar sources it don’t work, do I need to exclude dirs, to do not include inproper files?