our builds using the azure devops extension are generating a warning.
WARN: Your project contains C# files which cannot be analyzed with the scanner you are using. To analyze C# or VB.NET, you must use the SonarScanner for .NET 5.x or higher, see SonarScanner for .NET
We have this configured in the pipeline yaml
task: SonarQubePrepare@4
condition: eq(variables.AST, ‘true’)
inputs:
SonarQube: ‘SonarQube Prod’
scannerMode: ‘CLI’
configMode: ‘manual’
cliProjectKey: ‘xyz’
cliProjectName: ‘xyz’
cliSources: ‘$(System.DefaultWorkingDirectory)’
enabled: true
how to we setup this for the ,net scanner using the extension. the extension uses the service connection to to get the token to connect.
We have seen the docs telling to use the dotnet commands but we want to use the extension.
Help please.