private async void ButtonBase_OnClick(object sender, RoutedEventArgs e) { try { var result = await LibraryHelper.Check(); if (result.Availability == PackageUpdateAvailability.Available) { var loc = Package.Current.InstalledLocation; Toast("Restart the application to apply the updates.", "Update Available!"); } else { var loc = Package.Current.InstalledLocation; //var package = Package.Current; var packageStatus = Package.Current.Status; var effLoc = Package.Current.EffectiveLocation.Path; Toast("No updates available."); } } catch (Exception exception) { MessageBox.Show(exception.Message); } }