Hi!
I have two tips for you that work in PowerShell.
Open PowerShell as an administrator: Search for “PowerShell” in the Start menu, right-click it, and select “Run as administrator.”
To check the exclusions list:
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath
Second, you can create a test file in your exclusion folder (or better, in your project target folder) to check whether Defender detects the file as a virus, or if your folder exclusion is working.
It's called an EICAR Anti-Virus Test File ...
https://en.wikipedia.org/wiki/EICAR_test_fileYou can create the test file via PowerShell as follows:
Set-Content -Path "C:\MyProject\eicar-test.com" -Value 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*'
As a cross-check, you can also create a test file outside of an exclusion folder.
Jörg