I also experienced this weird phenomenon. I found out this happens only when Console.WriteLine() is followed by Console.Read, Console.ReadLine() or Console.ReadKey(). When other commands are added it doesn't happen.
The specific code is as follows:
using System;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello world");
Console.ReadKey();
}
}
}
I assume the compiler produces a very specific series of instructions which are interpreted by AVG as a false positive.
I also experienced this weird phenomenon. I found out this happens only when Console.WriteLine() is followed by Console.Read, Console.ReadLine() or Console.ReadKey(). When other commands are added it doesn't happen.
The specific code is as follows:
using System;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello world");
Console.ReadKey();
}
}
}
I assume the compiler produces a very specific series of instructions which are interpreted by AVG as a false positive.
I have just installed VS Community 2015 and tried the system with the "Hello World" console program with C#. At the completion, I got a message from AVG Antivirus that Hello World.exe contains the Trojan Horse virus Atros4.BPLN and I was given the option to clean. Can anyone provide comments on what is happening? Thank you in advance.