Hi! I’m new on sonar qube developer.
I have a trial license to test sonar qube developer, and i’m trying to analyse my project, wich contains .xaml.cs files. I noticed that in the Code tab my View project files (.xaml and .xaml.cs files) do not appear.
I went to general settings → languages → selected c# and on “file suffixes” added .xaml.cs file. I restarted sonar qube developer but it but it still doesn’t analyze the .xaml.cs files.
Is there a setting to do this or does sonar not support analyzing.xaml.cs files?
Hey there.
You shouldn’t have to change anything from the defaults to make sure .xaml.cs
files are analyzed. Here’s an example on one of our own projects.
Can you share your verbose scanner logs?
Share the Scanner for .NET verbose logs
- Add
/d:"sonar.verbose=true"
to the…SonarScanner.MSBuild.exe
ordotnet sonarscanner
begin command to get more detailed logs- For example:
SonarScanner.MSBuild.exe begin /k:"MyProject" /d:"sonar.verbose=true"
- For example:
- “SonarQubePrepare” or “SonarCloudPrepare” task’s
extraProperties
argument if you are using Azure DevOps- For example:
- task: SonarCloudPrepare@1 inputs: SonarCloud: 'sonarcloud' organization: 'foo' scannerMode: 'MSBuild' projectKey: 'foo_sonar-scanning-someconsoleapp' projectName: 'sonar-scanning-someconsoleapp' extraProperties: | sonar.verbose=true
- For example:
- The important logs are in the
END
step (i.e. SonarQubeAnalyze / SonarCloudAnalyze / “Run Code Analysis”)