Troubleshooting "program does not contain a static 'Main' method" when it clearly does...?
Are the properties on the file set to Compile?
I was struggle with this error just because one of my class library
projects was set acceddentaly
to be an console application
so make sure your class library projects is class library in Output type
Oke, I was looking at this issue as well. And in my case the solutions 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