Selecting one entry point in case of more main method in C# Project
Hi.How to select one entry point if more than one main() exists in C# Project.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mamta MRank #268 · 9.4K reputationPosted Dec 19, 2011, 7:55 PM EST
While compiling at the command prompt, give csc /m with the name of the fully qualified Main method.
OR
In Visual Studio IDE, you can set the Startup project through the Project properties.