Skip to content

Program does not contain a static 'Main' method suitable for an entry point #5

@PaperPrototype

Description

@PaperPrototype

it worked, then it didn't. So I deleted everything and cloned again... same error

Image

Changing the code to this does work though

using System;

class Program
{
    static void Main(string[] args)
    {
        // Your program logic goes here
        Console.WriteLine("Hello from the static Main method!");

        // Example of using command-line arguments
        if (args.Length > 0)
        {
            Console.WriteLine($"First argument: {args[0]}");
        }
    }
}

PS: You've got intellisense working?! This is awesome dude, I've definitely gotta figure out how you did that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions