"Program does not contain a static 'Main' method suitable for an entry point" error.
See original GitHub issueArea of Cosmos - What area of Cosmos are we dealing with?
I am trying out Cosmos for making an “OS”. I am using Cosmos UserKit20190508 with Visual Studio 2019. I previously had few error which were resolved with the help of NuGet Packages. However, another error is popping out demanding a Main()
method.
Expected Behaviour - What do you think that should happen?
OS emulator should open and the code should run in it as an OS.
Actual Behaviour - What unexpectedly happens?
I am getting an error in the Error List demanding a Main()
method for “suitable entry point”.
Reproduction - How did you get this error to appear?
I normally clicked the green button with “Cosmos” written on it. And the error appeared in the Error List.
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
I am using Cosmos UserKit20190508 with Visual Studio 2019.
Error Code and Error
Error Code: CS5001
Error Description: Program does not contain a static 'Main' method suitable for an entry point
This is the error (in the Error List dialog box at the bottom of the screen):
How do I resolve this error?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
It should be set Class Library
Wasn’t able to reproduce on Visual Studio 2019 16.0.3 fresh install with cosmos user kit 20190508. I had the same error that is referenced but after 10 seconds it disappeared automatically.