“does not contain a static 'main' method suitable for an entry point”

后端 未结 7 1287
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-03 15:21

I can\'t figure what\'s my wrong with my code below.

When I try to compile I get the message:

does not contain a static \'main\' method suitab

7条回答
  •  春和景丽
    2020-12-03 15:41

    Late, but for me, it was a "Console Application" project type, but "Build Action" in the file properties was some set to "None". Changed it to "Compile" and it was fine.

提交回复
热议问题