Analyser C# not Working

Hello,
I use the sonarScanner for MsBuild With Build Pipeline in Azure Devops.
Log :
Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarQube server.
Version : 4.11.0
Author : sonarsource

SonarQube version is 8.4.2.36762.

My Project is Build by the lastest Version of MsBuild, with Visual Studio 2019.

My project use a framework : .netStandard 2.1

The result sonarqube is empty, and in the log i have this warning :

17:04:08.247 INFO: Sensor C# Properties [csharp]
17:04:08.263 WARN: Analyzer working directory does not exist: ‘D:\agent_work\52.sonarqube\out\1\output-cs’. Analyzer results won’t be loaded from this directory.

17:04:08.263 DEBUG: Found Roslyn issues report

Help Me :slight_smile:

the log :slight_smile:

log.txt (166.1 KB)

No one to help me ???

Good Morning, @nmathieu! Could you please help me clarifying some points? What do you mean that the result is empty? Could you please navigate to project in sonarqube and check “Code” tab there? Could you see your C# files in there along with their lines of code or is this tab completely empty?

Hello,
Here are sonarqube :

thx for your help

Hi Mathieu,

Are you sure that Scanner for MSBuild is the only scanner that you run in your pipeline?

1 Like

Yes.

Hi @nmathieu

Which version of MSBuild are you using ? What does contain the task group ? is there any “standard” msbuild task on it ?

Thanks.

the task group

I use the last version of MsBuild, with Visual studio 2019 !

Hi,
i try with a simple pipeline , same result

Do you see any kind of Sonar-related logs in this build solution task ?

Here is the log File of the build
log.txt (81.3 KB)