ZipUtility 1.1.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ZipUtility --version 1.1.4
NuGet\Install-Package ZipUtility -Version 1.1.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ZipUtility" Version="1.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZipUtility --version 1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZipUtility, 1.1.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ZipUtility as a Cake Addin #addin nuget:?package=ZipUtility&version=1.1.4 // Install ZipUtility as a Cake Tool #tool nuget:?package=ZipUtility&version=1.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
internal partial class ZipUtilityTest : Form
{
public ZipUtilityTest()
{
var statusStrip = new StatusStrip() { Parent = this, };
var statusLabel = new ToolStripStatusLabel() { Text = "Read", Spring = true, TextAlign = ContentAlignment.MiddleLeft, };
statusStrip.Items.Add(statusLabel);
Action<string> progress = (l) => { statusLabel.Text = l; };
Button buttonDisp = new Button() { Text = "表示", Parent = this, Dock = DockStyle.Top, };
buttonDisp.Click += async (sender, e) =>
{
OpenFileDialog ofd = new OpenFileDialog() { InitialDirectory = Application.StartupPath, };
if (ofd.ShowDialog() == DialogResult.OK)
{
var z = await ZipViewer.Open(ofd.FileName, progress);
MessageBox.Show(
string.Join(Environment.NewLine,
z.FileList.Select(x => x.FileName).ToArray()));
var d = z.GetData(z.FileList.First().FileName);
var text = Encoding.UTF8.GetString(d);
MessageBox.Show(text);
}
};
Button buttonExtract = new Button() { Text = "解凍", Parent = this, Dock = DockStyle.Top, };
buttonExtract.Click += async (sender, e) =>
{
OpenFileDialog ofd = new OpenFileDialog() { InitialDirectory = Application.StartupPath, };
if (ofd.ShowDialog() == DialogResult.OK)
{
var z = await ZipViewer.Open(ofd.FileName, progress);
await z.Extract(z.FileList);
}
};
Button buttonZip = new Button() { Text = "圧縮", Parent = this, Dock = DockStyle.Top, };
buttonZip.Click += async (sender, e) =>
{
using (var streamzipper = new StreamZipper("streamzip.zip"))
{
OpenFileDialog ofd = new OpenFileDialog() { InitialDirectory = Application.StartupPath, Multiselect = true, };
if (ofd.ShowDialog() == DialogResult.OK)
{
foreach (var f in ofd.FileNames)
{
streamzipper.Add(f, System.IO.Path.GetFileName(f));
progress(f);
await Task.Delay(1);
}
}
FolderBrowserDialog fbd = new FolderBrowserDialog() { SelectedPath = Application.StartupPath, };
if (fbd.ShowDialog() == DialogResult.OK)
{
var startpos = System.IO.Path.GetDirectoryName(fbd.SelectedPath).Length;
foreach (var f in System.IO.Directory.GetFiles(fbd.SelectedPath, "*", System.IO.SearchOption.AllDirectories))
{
streamzipper.Add(f, f.Substring(startpos));
progress(f);
await Task.Delay(1);
}
}
streamzipper.Close();
streamzipper.Dispose();
progress("Ready");
}
};
StartPosition = FormStartPosition.CenterScreen;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net452 is compatible. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- SharpZipLib (>= 1.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.6 | 107 | 10/31/2024 |
1.2.4 | 202 | 11/26/2023 |
1.2.2 | 191 | 6/29/2023 |
1.2.1 | 164 | 6/12/2023 |
1.2.0 | 190 | 4/8/2023 |
1.1.8 | 235 | 3/19/2023 |
1.1.6.1 | 359 | 11/5/2022 |
1.1.5 | 454 | 3/19/2022 |
1.1.4 | 446 | 2/9/2022 |
1.1.3 | 440 | 1/10/2022 |
1.1.2 | 276 | 12/26/2021 |
1.1.1 | 284 | 12/18/2021 |
1.0.9 | 306 | 11/23/2021 |
1.0.8 | 313 | 10/25/2021 |
1.0.7 | 300 | 10/22/2021 |
1.0.6 | 324 | 10/16/2021 |