The compiler is looking
static void Main(string[])
or
static int Main(string[])
to determine the entry point. Main()can also be declared without an argument string[]. You only need to set the project settings if you have several classes with functions Main().
Here is a detailed MSDN answer for you.
source
share