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

后端 未结 7 1300
爱一瞬间的悲伤
爱一瞬间的悲伤 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:43

    I have also experienced this wrong. I changed the dropdown situated in Project properties/Application tab (Output type:). The original selected value was "Class Library" but i changed to "Windows Application" and found same error. Now resolved.

提交回复
热议问题