Today I've ran into an issue with my super-simple Hello World program written on C#. Every time I run it my Avast antivirus activates cyber capture and doesn't let the program to execute properly (cyber capture is activated only once, but if I recomplie my project the case will repeat). This looks like this.
And here is the code of the only file in my project:
using System;
using System.Threading;
namespace Project1
{
public class Class1
{
private static void Main()
{
Console.WriteLine("Simple program attacked by avast");
Thread.Sleep(7650);
}
}
}
So, my question is, why does this happen and what should I do to prevent this? Adding project directory to anti-virus exceptions or disabling it while developing doesn't go because every user will have to do it.