private async Task DownloadExtensionFileAsync(GalleryEntry entry, string dir, DTE dte)
        {
            var localPath = Path.Combine(dir, CreateMD5(entry.DownloadUrl) + ".vsix");

            using (var client = new WebClient())
            {
                await client.DownloadFileTaskAsync(entry.DownloadUrl, localPath);
            }

            await UpdateProgressAsync(dte);
        }
Example #2
0
 public static Extension FromGalleryExtension(GalleryEntry entry)
 {
     return(new Extension {
         ID = entry.VsixID, Name = entry.Name, MoreInfoUrl = entry.MoreInfoURL
     });
 }