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

后端 未结 7 1288
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  Happy的楠姐
    2020-12-03 15:38

    Your project must be created as an empty project. So the output type shows as Console Application. Change it to Class library, and it should work

提交回复
热议问题