Right-click on the project in Solution Explorer, and locate:
- Common Properties
- General
- Application
- Startup Object and set it to the preferred class that contains your
Main()
method
!!! You declared your Main()
method like this: main()
, which is not correct. It must be Main()
. C# is a case-sensitive language.
Check this: