OfficeIMO.Zip
3.0.0
Prefix Reserved
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
dotnet add package OfficeIMO.Zip --version 3.0.0
NuGet\Install-Package OfficeIMO.Zip -Version 3.0.0
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="OfficeIMO.Zip" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Zip" Version="3.0.0" />
<PackageReference Include="OfficeIMO.Zip" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Zip --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OfficeIMO.Zip, 3.0.0"
#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.
#:package OfficeIMO.Zip@3.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Zip&version=3.0.0
#tool nuget:?package=OfficeIMO.Zip&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OfficeIMO.Zip - safe ZIP traversal primitives
OfficeIMO.Zip provides dependency-light ZIP traversal primitives for ingestion scenarios.
Install
dotnet add package OfficeIMO.Zip
Quick start
using OfficeIMO.Zip;
ZipTraversalResult result = ZipTraversal.Traverse("archive.zip", new ZipTraversalOptions {
MaxEntries = 1000,
MaxDepth = 8,
MaxTotalUncompressedBytes = 100L * 1024L * 1024L
});
foreach (ZipEntryDescriptor entry in result.Entries) {
Console.WriteLine($"{entry.FullName} ({entry.UncompressedLength} bytes)");
}
foreach (ZipTraversalWarning warning in result.Warnings) {
Console.WriteLine($"{warning.EntryPath}: {warning.Warning}");
}
What it does
- Enumerates entries deterministically.
- Applies path safety guards for relative traversal, absolute paths, and drive paths.
- Enforces depth, entry-count, uncompressed-size, per-entry-size, and compression-ratio limits.
- Reports traversal warnings for rejected or limited entries.
Examples
Enumerate accepted files only
using OfficeIMO.Zip;
IReadOnlyList<ZipEntryDescriptor> entries = ZipTraversal.Enumerate("evidence.zip",
new ZipTraversalOptions {
DeterministicOrder = true,
IncludeDirectoryEntries = false,
MaxEntries = 2500
});
foreach (var entry in entries.Where(entry => !entry.IsDirectory)) {
Console.WriteLine($"{entry.FullName} depth={entry.Depth} bytes={entry.UncompressedLength}");
}
Traverse a stream with defensive limits
using OfficeIMO.Zip;
await using var upload = File.OpenRead("upload.zip");
ZipTraversalResult result = ZipTraversal.Traverse(upload, new ZipTraversalOptions {
MaxDepth = 6,
MaxEntries = 500,
MaxEntryUncompressedBytes = 20L * 1024L * 1024L,
MaxTotalUncompressedBytes = 100L * 1024L * 1024L,
MaxCompressionRatio = 100
});
if (result.Warnings.Count > 0) {
foreach (var warning in result.Warnings) {
Console.WriteLine($"{warning.EntryPath}: {warning.Warning}");
}
}
Use traversal output before extraction
using OfficeIMO.Zip;
var traversal = ZipTraversal.Traverse("incoming.zip");
var safeJsonEntries = traversal.Entries
.Where(entry => entry.FullName.EndsWith(".json", StringComparison.OrdinalIgnoreCase))
.ToList();
foreach (var entry in safeJsonEntries) {
Console.WriteLine($"Queue {entry.FullName} for a separate extraction step.");
}
Boundaries
- This package owns ZIP traversal policy primitives.
- Reader integration belongs in
OfficeIMO.Reader.Zip. - It is not a general archive extraction framework.
Targets and license
- Targets:
netstandard2.0,net8.0,net10.0. - License: MIT.
- Repository: EvotecIT/OfficeIMO
Dependency footprint
- External: None beyond platform compression APIs.
- OfficeIMO:
OfficeIMO.Drawing. Traversal policy, safety limits, descriptors, and warnings are first-party.
See the complete OfficeIMO package map for related formats and conversion paths.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- OfficeIMO.Drawing (>= 3.0.0)
-
.NETStandard 2.0
- OfficeIMO.Drawing (>= 3.0.0)
-
net10.0
- OfficeIMO.Drawing (>= 3.0.0)
-
net8.0
- OfficeIMO.Drawing (>= 3.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OfficeIMO.Zip:
| Package | Downloads |
|---|---|
|
OfficeIMO.Reader.Zip
ZIP adapter for OfficeIMO.Reader modular ingestion. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0 | 100 | 7/20/2026 |
| 2.0.1 | 269 | 7/14/2026 |
| 2.0.0 | 125 | 7/14/2026 |
| 0.0.33 | 253 | 7/9/2026 |
| 0.0.32 | 300 | 7/8/2026 |
| 0.0.31 | 470 | 7/5/2026 |
| 0.0.30 | 230 | 7/4/2026 |
| 0.0.29 | 246 | 6/27/2026 |
| 0.0.28 | 152 | 6/27/2026 |
| 0.0.27 | 414 | 6/24/2026 |
| 0.0.26 | 200 | 6/23/2026 |
| 0.0.25 | 317 | 6/21/2026 |
| 0.0.24 | 158 | 6/16/2026 |
| 0.0.23 | 346 | 6/16/2026 |
| 0.0.22 | 191 | 6/15/2026 |
| 0.0.21 | 168 | 6/13/2026 |
| 0.0.20 | 144 | 6/12/2026 |
| 0.0.19 | 149 | 6/9/2026 |
| 0.0.18 | 148 | 6/5/2026 |
| 0.0.17 | 145 | 5/27/2026 |
Loading failed