public override void OnActivated() { base.OnActivated(); //get the current exportsettings try { IDictionaryService dictionaryService = GetService(typeof(IDictionaryService)) as IDictionaryService; exportSettings = (SharePointExportSettings)dictionaryService.GetValue("ExportSettings"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void ExportContent(SharePointExportSettings exportSettings, string tempExportDir, string tempFilename, string tempLogFilePath) { try { Helpers.ShowProgress(dte, "Exporting SharePoint solution...", 60); remoteObj.ExportContent(exportSettings, tempExportDir, tempFilename, tempLogFilePath); } catch (Exception ex) { Helpers.LogMessage(dte, dte, ex.Message); } finally { Helpers.HideProgress(dte); StopBridge(); } }