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

前端 未结 26 1724
时光说笑
时光说笑 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条回答
  •  萌比男神i
    2020-12-05 13:05

    Looks like a Windows Forms project that is trying to use a startup form but for some reason the project properties is set to startup being Main.

    If you have enabled application framework you may not be able to see that Main is active (this is an invalid configuration).

提交回复
热议问题