Thursday, August 26, 2010

WPF - Error 1 - Program does not contain a static 'Main' method suitable for an entry point

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

The scenario in which this arose for me was after importing a WPF project built in VS2008 into VS2010.

Solution

Set the 'build action' property on App.xaml to 'Application Definition'.

No comments:

Post a Comment

comment: