Pages

Saturday, August 13, 2016

WPF: .exe does not contain a static Main method suitable for an entry point



This morning while running my WPF application, I ran into the following error: " .exe does not contain a static Main method suitable for an entry point"

If you are getting the same error the solution is simple, you need to make sure that the "Build Action" from App.xaml file for your application is set to "ApplicationDefinition".
Hope this helps somebody out there.



No comments:

Post a Comment