I am trying to add HockeyApp to my WPF app, but cannot find Application.OnLaunched ? Any thought appreciated thanks!
For platforms other than UWP, you need to add the following line of code at the end of the OnLaunched(LaunchActivatedEventArgs e) Method (in App.xaml.cs)
It seems, that KB page is incorrect. There's no OnLaunched
method in WPF Application
class. The nearest equivalent will be OnStartup
.
Note, that Silverlight Application
differs from WPF one - you need to handle Startup
event, because there's no virtual OnStartup
method there.