When checking in previous commits/updates I can see that this change has implemented before but then rolled back. Was there a reason for this? Has this change/update to MSBuild versions caused issues with code analysis before and what are our options going forward to resolve this issue?
Effectively, after scanning our C# code base using v4.1.6 of SonarScanner extension, the project containing C# code now shows in SonarQube as having zero lines of C# code in it.
Whereas when this was scanned with v4.1.5 , there was 2k lines of C# code.
There’s a dump of the sonar-project.properties file the scanner generates. It helps seeing which file will be analyzed generally. Do you see yours in here ? Or there’s nothing at all ?
So there is a sonar.properties file in there, but the time of creation isn’t the same date/time (or near the date/time) as the any of builds (incl the debug build).
Looking at the contents of the file that was created, it displays the following information.
Sorry, i mean the file should be dumped in the log directly in debug mode. Its location is generally under the .sonarqube\out folder (at the same level as your sources root directory.
Ahhh so I can see that some of them are populated and some of them aren’t populated.
The ones that are populated have file paths in them, and from what I can tell the ones that aren’t populated have the element below populated, which is sonar.tests (again with file paths).
I’m guessing this is correct, or should all of the sonar.sources be populated?
Ahhh okay at least that seems to be working okay then =) What would the next aspect to check be? or is the fact that those aspects are populated mean it should be working?
This does mean that files have been at least discover, but for some reason on your case, they have not been analyzed, right ? Can you share me the whole log privately please ? it will be easier for me to try to see what’s going on.
I need the Run Code analysis task, with debug mode enabled. I’ll send you a PM.
Hi @mickaelcaro - I’ve been working with Tom on this. He’s finished for the day now. Are you able to DM me for the rest of the day instead of Tom please on this.