public void RunStarted(object automationObject, Dictionary <string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { DTE2 dte = automationObject as DTE2; // here we need to show the UI for which file to download var form = new DownloadZipWindow(); var result = form.ShowDialog(); if (result.HasValue && result.Value) { // download the file string file = form.DownloadedFile; TempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); if (!Directory.Exists(TempDir)) { Directory.CreateDirectory(TempDir); } // unpack the file in temp ZipFile.ExtractToDirectory(file, TempDir); // copy the files to the project directory var foo = "bar"; } }
public void RunStarted(object automationObject, Dictionary<string, string> replacementsDictionary, WizardRunKind runKind, object[] customParams) { DTE2 dte = automationObject as DTE2; // here we need to show the UI for which file to download var form = new DownloadZipWindow(); var result = form.ShowDialog(); if (result.HasValue && result.Value) { // download the file string file = form.DownloadedFile; TempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); if (!Directory.Exists(TempDir)) { Directory.CreateDirectory(TempDir); } // unpack the file in temp ZipFile.ExtractToDirectory(file, TempDir); // copy the files to the project directory var foo = "bar"; } }