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

前端 未结 26 1757
时光说笑
时光说笑 2020-12-05 12:55

I began organizing my code to day into seperarate .cs files, and in order to allow the methods that work with the UI to continue to do so I would create the .cs code under t

26条回答
  •  半阙折子戏
    2020-12-05 13:03

    After placing the above code in Program.cs, follow these steps:

    1. Right click on the project

    2. Select "Properties"

    3. Set "Output Type" to "Windows Application"

    4. Startup object : namepace.Program

提交回复
热议问题