tags:

views:

7839

answers:

2

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

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?

+23  A: 

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

HTH, Kent

Kent Boogaart
A minute ago i found, that it wasn't :) I have no idea why it was changed to 'Page' bu Visual Studio. Thanks anyway :)
A: 

You can also run into this if you're working on a WPF project that was started in VS 2010 (Beta 1), then moved into VS 2008.

Under the project properties, the .NET framework version gets unset (since .NET 4.0 isn't valid in VS 2008), and for some reason that causes this error.

If you set the .NET framework (e.g. to .NET 3.5), the error goes away.

Kyralessa