✅ I keep getting Error CS5001 and CS0028, how do i get rid of them
in CS5001 it says Program does not contain a static "Main" method suitable for an entry point and in CS0028 it says 'Program.Main(Application[])' has the wrong signature to be an entry point
19 Replies
Make a proper main
Google for c# main
ok wait
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
it's correct but it's not working?
idk it just came
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
how
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
wym
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
nah
what does the main signature look like?
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
The possible signatures for
Main
are public
is not required (can be any accessibility).
Top-level statements are compiled into a Main
method and will use an appropriate signature depending on the body.
https://docs.microsoft.com/en-US/dotnet/csharp/fundamentals/program-structure/main-command-lineMain() and command-line arguments - C#
Learn about Main() and command-line arguments. The 'Main' method is the entry point of an executable program.
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
which part
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
ok wait a sec
i love u bro
thank u so much