Changeset 12395 for branches/HiveStatistics/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/UploadPluginsView.cs
- Timestamp:
- 05/20/15 16:41:14 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.PluginInfrastructure/3.3/Advanced/UploadPluginsView.cs
r11205 r12395 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using System.Drawing; 26 26 using System.IO; 27 using System.IO.Compression; 27 28 using System.Linq; 28 29 using System.ServiceModel; 29 30 using System.Windows.Forms; 30 31 using HeuristicLab.PluginInfrastructure.Manager; 31 using ICSharpCode.SharpZipLib.Zip;32 32 33 33 namespace HeuristicLab.PluginInfrastructure.Advanced { … … 262 262 private static byte[] CreateZipPackage(IPluginDescription plugin) { 263 263 using (MemoryStream stream = new MemoryStream()) { 264 ZipFile zipFile = new ZipFile(stream); 265 zipFile.BeginUpdate(); 264 ZipArchive zipFile = new ZipArchive(stream, ZipArchiveMode.Create); 266 265 foreach (var file in plugin.Files) { 267 zipFile.Add(file.Name); 268 } 269 zipFile.CommitUpdate(); 266 zipFile.CreateEntry(file.Name); 267 } 270 268 stream.Seek(0, SeekOrigin.Begin); 271 269 return stream.GetBuffer();
Note: See TracChangeset
for help on using the changeset viewer.