Why is Application.OnStartup not being called?
x:Class must be filled with the namespace and exact class name on App.xml.cs
Eg: <Application x:Class="Namespace.ClassName"
Found it, I had to set the x:Class
attribute in App.xaml to the same class as the App.xaml.cs class. This was an error caused by bad refactoring on my side.