So i made a fun c# meme program about the game among us on an .exe file.
But when i share it, anyone who runs it (including myself if i download it from the places i shared it in) gets a windows defender warning (Windows protected your computer).
Here is my code :
using System;
namespace cs2
{
class Program
{
static void Main(string[] args)
{
Random random = new Random();
Console.Write("See if you are a crewmate or impostor ? 1/2: ");
string Result = Console.ReadLine();
if (Result == "1")
{
int tests = random.Next(0, 6);
if (tests == 1)
{
Console.WriteLine("You are the imposter");
Console.ReadLine();
}
else
{
Console.WriteLine("You are a Crewmate");
Console.ReadLine();
}
}
}
}
}
I shared the program on discord and mediafire . I used the dotnet build visual studio code command to compile it into a .exe file.
What is causing this false positive and how do i fix this problem ?
Thanks.