CPP -- error CS5001: Program does not contain a static 'Main' method suitable for an entry point

2024-07-25T09:47:57.83+00:00

Hi,

Getting this error on a C++ application:

error CS5001: Program does not contain a static 'Main' method suitable for an entry point:

Tried adding this: (no luck...)

public static void Main()
{
}
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,761 questions
{count} votes

1 answer

Sort by: Most helpful
  1. 2024-07-25T09:57:11.8066667+00:00

    Thats strange - It's definitely a C++ project...


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.