Does not contain a static ‘main’ method suitable for an entry point

I was looking at this issue as well, and in my case the solution was too easy. I added a new empty project to the solution. The newly added project is automatically set as a console application. But since the project added was a ’empty’ project, no Program.cs existed in that new project. (As expected)

All I needed to do was change the output type of the project properties to Class library

Leave a Comment