@Rex_Andrew it looks like you are using v2 of the SonarQube VSTS extension from 2016. Is that correct?
That version of the extension has been obsolete for some time. I’m guessing that you are using an old self-hosted version of Azure/VSTS and can’t upgrade to the v4 version of the SonarQube extension (although if you can, you should).
I’m struggling to any documentation for that version of the task. Looking at the original release announcement, if you want to scan C# code then you only need the
SonarQube Scanner for MSBuild - Begin Analysis and
SonarQube Scanner for MSBuild - End Analysis tasks. You should be passing the settings to the scanner in the “Begin” step.
Alternatively, set the inclusions/exclusions in the UI.
SonarQube Scanner CLI task is for non-MSBuild projects. That is probably what is push the XML etc results to the server.