“does not contain a static ‘Main’ method suitable for an entry point”
I learn things is by ripping them apart, putting them back together, and/or putting them together so I can rip them apart. I want to learn how MS leverages ServiceLocator, MEF, and the composition featers highlighted in Prism.
To this end, I have been playing with the Stock Trader Reference Implement from the Patterns and Practices team. I took all of the content from the 6 or 7 dlls and shoved it all into a single project. Just because… Moving the App.xaml file from the StockTraderRI project into my project sent things sideways. After I resolved all of the ‘other’ build issues (namespace, embedded resources, data inputs, etc), I found that I didn’t have a static Main entry point ala “does not contain a static ‘Main’ method suitable for an entry point” error.
Solution
Click on the App.xaml file.
Select Build Action
Set to ‘ApplicationDefinition’
That’s it.
Enjoy!
