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

Christopher picture Christopher · Feb 23, 2009 · Viewed 143k times · Source

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

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

I made no changes to project properties, just added some classes, moved some other classes into folders. Its an WPF Application project so it should be all OK. Entry point is where it should be, file App.xaml was not modified at all :(

What should I do to make it work again?

Answer

Kent Boogaart picture Kent Boogaart · Feb 23, 2009

Check the properties of App.xaml. Is the Build Action still ApplicationDefinition?