C
C#2y ago
Kairos

❔ Need some help.

Hello, I'm current following a tutorial series going over the basics of C# and need some help with fixing an error I keep getting. The error I keep getting says this: Program has more than one entry point defined. Compile with /main to specify the type thacpp(CS0017). I've attached a screenshot of my code. I'd appreciate some help.
14 Replies
Mayor McCheese
Show all files in your project
Kairos
KairosOP2y ago
Kairos
KairosOP2y ago
Mayor McCheese
What is in shortstory.cs
Kairos
KairosOP2y ago
Mayor McCheese
There's your problem You can't have two mains like that
Kairos
KairosOP2y ago
ah ok
Mayor McCheese
Every file doesn't need a Main function Just your "entry point" It's the thing your compiler knows to run when you start your application ( oversimplification )
Kairos
KairosOP2y ago
i see so how do I fix it?
Mayor McCheese
Fit now change Main in shortdory to Main2
Kairos
KairosOP2y ago
ok
Mayor McCheese
That should get you over the hump
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?