Why do I get a "cs5001: does not have an entry point defined" error when compiling?
Answer / Anuj Kumar Srivastava
The "cs5001" error is usually due to the fact that your C# code doesn't contain a valid 'Main()' method. The 'Main()' method is the entry point for console applications, and it must be declared in the same file where you intend to run the program.
| Is This Answer Correct ? | 0 Yes | 0 No |
When To use HashTable In C#
How to properly clean up excel interop objects?
can we declare a variable by name "this" in a class? Please explain?
What is main thread in c#?
Why is ienumerable used?
how to convert String array to StringBuilder array or vice versa?
What is difference between interface and abstraction?
What are the properties of c#?
What is callback delegate in c#?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?
Give 2 scenarios where static constructors can be used?
What is the execution entry point for a c# console application?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)