public static async Task ExecuteAsync(IShell shell) { var dialog = new SaveFileDialog() { Filter = "xml files (*.xml)|*.xml|all files (*.*)|*.*", FilterIndex = 1, RestoreDirectory = true, }; if (dialog.ShowDialog() == true) { await shell.ExportAsync(dialog.FileName); } }