© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
36 replies
elmish

✅ namespaces

every time i try to use namespace and class i get
Error    CS5001    Program does not contain a static 'Main' method suitable for an entry point
Error    CS5001    Program does not contain a static 'Main' method suitable for an entry point


what am i supposed to do because
namespace helloword
{
    class HelloWorld
    {

    }
}
namespace helloword
{
    class HelloWorld
    {

    }
}


gives the same error as
namespace helloword
{
    class HelloWorld
    {
        static void Main()
        {

        }
    }
}
namespace helloword
{
    class HelloWorld
    {
        static void Main()
        {

        }
    }
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Inconsistent namespaces
C#CC# / help
4y ago
ILSpy decompiles namespaces incorrectly
C#CC# / help
16mo ago
are theses considered namespaces?
C#CC# / help
2y ago
Worker service recommended folder structure / namespaces
C#CC# / help
14mo ago