✅ Rider Program does not contain Static Main
Program does not contain a static 'Main' method suitable for an entry point
Program.Helper.cs
My Program.cs
is empty43 Replies
Not sure what you're expecting us to say? If you don't have a
Main
method or a file with top-level statements, then there indeed isn't an entry pointnot a rider problem, i'm not even sure how you got here because no standard C# project template that looks like this
Your
Program
class is partial too, so I assume you're doing something weirdin vscode is does it automatically with top level statements?
No idea what you mean by that
I get it completely the error etc, just switching from vscode to rider this error is apparent unless i am doing something differently
this has nothing to do with your editor
the way your project looks when you create it depends on the template and options you selected
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
example old project
![No description](https://cdn.answeroverflow.com/1265423842541830254/Screenshot_2024-07-23_at_22.41.48.png)
![No description](https://cdn.answeroverflow.com/1265423842961133708/Screenshot_2024-07-23_at_22.42.18.png)
![No description](https://cdn.answeroverflow.com/1265423843338489977/Screenshot_2024-07-23_at_22.42.30.png)
i feel like you're not listening to what we're saying
you did something to make your project not have a main/TLS
no template comes like that
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
regardless, just add a main or a file with top level statements and that will solve the problem
i did dotnet new console
and yeah true obj / bin should not be added mb
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
yep