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

前端 未结 26 1769
时光说笑
时光说笑 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:10

    When you want to allow paramaters to be specified from the command, they must look like this:

     [STAThread]
     static void Main(params string[] paramaters)
     {
    

    you cannot specify more than one paramater, otherwise this will also cause the error reported above.

提交回复
热议问题