C
C#16mo 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
Mayor McCheese16mo ago
Show all files in your project
Kairos
KairosOP16mo ago
Kairos
KairosOP16mo ago
Mayor McCheese
Mayor McCheese16mo ago
What is in shortstory.cs
Kairos
KairosOP16mo ago
Mayor McCheese
Mayor McCheese16mo ago
There's your problem You can't have two mains like that
Kairos
KairosOP16mo ago
ah ok
Mayor McCheese
Mayor McCheese16mo ago
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
KairosOP16mo ago
i see so how do I fix it?
Mayor McCheese
Mayor McCheese16mo ago
Fit now change Main in shortdory to Main2
Kairos
KairosOP16mo ago
ok
Mayor McCheese
Mayor McCheese16mo ago
That should get you over the hump
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord16mo 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.
Want results from more Discord servers?
Add your server