Program does not contain a static 'Main' method suitable for an entry point

后端 未结 9 1130
心在旅途
心在旅途 2020-11-28 23:40

Suddenly my whole project stopped compiling at all, showing the following message:

Program \'path_to_obj_project_folder\' does not contain a static \'

相关标签:
9条回答
  • 2020-11-29 00:10

    Maybe the "Output type" in properties->Application of the project must be a "Class Library" instead of console or windows application.

    0 讨论(0)
  • 2020-11-29 00:10

    Just in case anyone is having the same problem... I was getting this error, and it turned out to be my <Application.Resources> in my App.xaml file. I had a resource outside my resource dictionary tags, and that caused this error.

    0 讨论(0)
  • 2020-11-29 00:12

    Just in case someone is still getting the same error, even with all the help above: I had this problem, I tried all the solutions given here, and I just found out that my problem was actually another error from my error list (which was about a missing image set to be my splash screen. i just changed its path to the right one and then all started to work)

    0 讨论(0)
提交回复
热议问题