Hi @LP2020,
[Duplicate question on StackOverflow]
Unfortunately that setting is only used by the SonarScanner for MSBuild; it isn’t handled in the IDE.
There isn’t current any way to automatically exclude an entire project. [See below] There are a couple of tickets in the backlog that are related, namely #1337 and #1336.