Original: Please compile with/main to specify the type of entry point included
When using the VS tool to learn C # when you need to keep writing small programs, I feel that each time the new project is too troublesome, so try to write the program under a project, the results of the compilation error, because I use the main () method for each applet, and the information of the VS is not understand the reason, but do not know how to do , and then look at MSDN to get a solution, to share with people who have the same doubts as I do:
Workaround:
vs Interface Click: Project-->XX Properties--The application on this page has a Startup object property set to the class name you want to start.
In addition:/main is compiled when the cmd command bar uses CSC to compile multiple classes with the main () function to specify the type that contains the entry point
EG:CSC T2.cs T3.cs/main:test2
The program defines multiple entry points. Compiling with/main (specifying the type that contains the entry point)