Does not contain a static 'main' method suitable for an entry point
Solution 1:
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
Solution 2:
Change the Output Type under the Project > Properties to that of a “Class Library”. By default, this setting may have been set to a “Console Application”.
Solution 3:
I had this error and solved it using this solution.
- Right click on the project
- Select "Properties"
- Set "Output Type" to "Class Library".