If my Visual Studio project has a Pre-Build event command line, Visual Studio creates a randomly named file something like:
c:\users\username\AppData\Local\Temp\tmp23a9ab8492d8c3f792387498798.exec.cmd
In my case this command file is trying to execute this command to capture the build date:
echo %date% %time% > "$(ProjectDir)\Resources\BuildDate.txt"
Which then triggers Avast to pop this error:
(BTW -1000pts for not having copy/paste on the error dialog, and -1000pts more for not allowing image posting in the forum)
APP NAME: the one I said
PROTECTED FOLDER: C:\USERS\USERNAME\Documents
File Path: c:\users\username\Documents\Projects\...\BuildDate.txt
Detected by: Ransomware Shield
Status: -
Since the cmd file is named at random every time, I have to turn the ransomware shield completely off to let it run, EVERY TIME I do a project build, so about 75 times a day.
Please work with Microsoft to let us whitelist with wildcard matches, or I will need to find another virus scanner provider.