C
C#13mo ago
fat brown dog

✅ 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
phaseshift
phaseshift13mo ago
Make a proper main Google for c# main
fat brown dog
fat brown dogOP13mo ago
ok wait
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
it's correct but it's not working? idk it just came
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
how
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
wym
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
ok
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
nah
alex
alex13mo ago
what does the main signature look like?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX13mo ago
The possible signatures for Main are
public static void Main() { }
public static int Main() { }
public static void Main(string[] args) { }
public static int Main(string[] args) { }
public static async Task Main() { }
public static async Task<int> Main() { }
public static async Task Main(string[] args) { }
public static async Task<int> Main(string[] args) { }
public static void Main() { }
public static int Main() { }
public static void Main(string[] args) { }
public static int Main(string[] args) { }
public static async Task Main() { }
public static async Task<int> Main() { }
public static async Task Main(string[] args) { }
public static async Task<int> Main(string[] args) { }
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-line
Main() 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
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
which part
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
fat brown dog
fat brown dogOP13mo ago
ok wait a sec i love u bro thank u so much
Want results from more Discord servers?
Add your server