Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program does not contain a static ‘Main’ method suitable for an entry point

Tags:

c#

What do I do if I just want to create a project which contains a bunch of library functions? In other words no Main method is required. It seemed to be compiling a minute ago and then I added another .cs file and now I am confronted with this error message.

like image 557
deltanovember Avatar asked Jan 21 '10 04:01

deltanovember


1 Answers

Create a .NET Class Library project if you only want a library project. If this is a project that already exists, you can set the Project Output type to a DLL ("Class Library") instead of an Executable ("Windows Application"/"Console Application") in the project properties.

like image 75
Michael Bray Avatar answered Sep 17 '22 15:09

Michael Bray