I’m not sure what sonar.dotnet.exclude is referring to (sonar.coverage.exclusions is the right parameter to use if you’re trying to ignore code coverage), I’m not sure where you found documentation for configuring a .props file this way.
If you’re looking to exclude files in a single place that isn’t the .csproj of affected projects or the SonarCloud UI – your best bet is to put them in your version-controlled azure-pipelines.yml file (where you can define additional properties that are passed to the scanner).
#2sonar.coverage.exclusions does not seem to have any affect. The only value that has a clear affect is sonar.sources=pages. But then it seems impossible to exclude tests in that folder and the coverage is way off compared to our local stats. ie pages locally is 80% covered but on sonar cloud on 13%.
I understand tests don’t need coverage and I’m trying to exclude several folders from being included in the coverage calculation just like we have setup locally with jest.setup.ts.