Program 'output file name' has more than one entry point defined: function
A program can only have one Main method.
The following sample generates CS0017:
public class clx { static public void Main() { } } public class cly { public static void Main() { // CS0017, delete one Main method } }