Why do I get a "CS5001: does not have an entry point defined" error when compiling?

The most common problem is that you used a lowercase 'm' when defining the Main method. The correct way to implement the entry point is as follows:

class test

{

static void Main(string[] args) {}

}

Showing Answers 1 - 1 of 1 Answers

Swati

  • Jul 15th, 2005
 

class test  
 

 
public test() 


public static void Main(string[] args) {} 
 
}  
 
modifier for Main is public and inside the clas default constructor is necessary

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions