Search code examples
antivirusvirus

mcAfee antivirus immediately delete the .exe file when we run our program in VS Code


mcAfee antivirus immediately delete the .exe file when we run our program in VS Code saying it a virus. What could be the solution for this?


Solution

  • If your program is for personal use:

    • Add the compile folder to the exclusion list (might need system restart)
    • Add your whole personal projects folder to the exclusion list. Take care, don't use in this folder code/projects downloaded from the internet that you don't trust.
    • Use another antivirus (including windows built-in)

    If your program is for public distribution/distribution within a company:

    • Submit a report to the antivirus makers