How to ignore specific external roslyn analyzer rules

I am trying to ignore some of the rules from external roslyn analyzer which are included in soarqube scan.
I have tried creating Sonarqube.Analysis.xml file as follows:

<SonarQubeAnalysisProperties  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
  <Property Name="sonar.cs.roslyn.ignoreIssues">false</Property>
  <Property Name="sonar.issue.ignore.multicriteria">e1</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.ruleKey">external_roslyn:CA1859</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.resourceKey">**/*.cs</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.ruleKey">external_roslyn:IDE0300</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.resourceKey">**/*.cs</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.ruleKey">external_roslyn:IDE0303</Property>
  <Property Name="sonar.issue.ignore.multicriteria.e1.resourceKey">**/*.cs</Property>
</SonarQubeAnalysisProperties>

but still those rule issues are reflected in SQ scan dashboard.
I am using SQ community version 10.5.1
Can you please help me out overe here?

So basically there is no option to do it using the Sonarqube.Analysis.xml file.
The thing is we don’t want to touch existing setup, we have a refined Rosyln configuration pulled in via our props files (standard .NET approach). SonarQube is simply ignoring that, and just enabling everything.

SonarQube should only be importing Roslyn issues that would normally be raised for your project (we have no list of rules we try to force being raised). Would you be able to attach your refined analysis configuration?

It would also help to see the MSBuild detailed logs, to understand why other rules than expected are being executed.

Share the msbuild detailed logs

MsBuild.exe /t:Rebuild /v:d

or

dotnet build -v:d

I’ll also put this thread here, as it sounds similar: