❔ 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.
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136156761364111470/Screenshot_227.png)
14 Replies
Show all files in your project
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136158357573607495/Screenshot_229.png)
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136158521893859348/Screenshot_231.png)
What is in shortstory.cs
![](https://answer-overflow-discord-attachments.s3.amazonaws.com/1136158835577471006/Screenshot_233.png)
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•12mo 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.