❔ 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
Show all files in your project
What is in shortstory.cs
There's your problem
You can't have two mains like that
ah ok
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 )
i see
so how do I fix it?
Fit now change Main in shortdory to Main2
ok
That should get you over the hump
Unknown User•16mo ago
Message Not Public
Sign In & Join Server To View
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.