How do you specify the sonarscanner version that is being used with SonarQubeAnalyze task?

Without really knowing anything about .Net on linux, the .Net section at
https://docs.sonarqube.org/latest/analysis/azuredevops-integration/

has this .yml example

trigger:
- master # or the name of your main branch
- feature/*

steps:
# Prepare Analysis Configuration task
- task: SonarQubePrepare@5
  inputs:
    SonarQube: 'YourSonarqubeServerEndpoint'
    scannerMode: 'MSBuild'
    projectKey: 'YourProjectKey'

# Run Code Analysis task
- task: SonarQubeAnalyze@5

# Publish Quality Gate Result task
- task: SonarQubePublish@5
  inputs:
    pollingTimeoutSec: '300'

so i guess scannerMode: 'MSBuild' is right.