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

This morning while refactoring 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"




Comments

Popular posts from this blog

WPF How to Dispose ViewModel when the associated UserControl (Not Window) closes?

WPF: VisualTreeHelper Find Parent of Specific Type

C# How to unit test Dispatcher