Unable to exclude files such as Startup.cs

SonarQube: 9.2.4.50792
AzureDevOps Service Connection
Using in YAML Pipeline:

       extraProperties: |
          sonar.typescript.tsconfigPath=gfm-client/tsconfig.json
          sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml
          sonar.javascript.lcov.reportPaths=gfm-client/coverage/lcov.info
          sonar.coverage.exclusions=**/GfmWeb/Startup.cs
          sonar.coverage.exclusions=GfmWeb/Startup.cs

sonar.exclusions=**/GfmWeb/Startup.cs works but I don’t want it excluded from the entire analysis.

Dev Edition. Testing in non-main branch.

Trying to exclude Startup.cs from coverage report.
Tried setting in the UI.
Confirmed no other UI settings when trying in YAML.
Tried many different patterns.

Startup.cs always shows in the coverage report.

Hey there.

This should work, but once you’ve added

This overrides the first time you set it. Try removing the second sonar.coverage.exclusions