Soukoku.Extensions.FileProviders.Zip 2.0.3

dotnet add package Soukoku.Extensions.FileProviders.Zip --version 2.0.3
                    
NuGet\Install-Package Soukoku.Extensions.FileProviders.Zip -Version 2.0.3
                    
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="Soukoku.Extensions.FileProviders.Zip" Version="2.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soukoku.Extensions.FileProviders.Zip" Version="2.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Soukoku.Extensions.FileProviders.Zip" />
                    
Project file
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 Soukoku.Extensions.FileProviders.Zip --version 2.0.3
                    
#r "nuget: Soukoku.Extensions.FileProviders.Zip, 2.0.3"
                    
#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 Soukoku.Extensions.FileProviders.Zip@2.0.3
                    
#: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=Soukoku.Extensions.FileProviders.Zip&version=2.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Soukoku.Extensions.FileProviders.Zip&version=2.0.3
                    
Install as a Cake Tool

About

Allows using zip files as a FS provider for aspnet core's StaticFiles middleware. A single zip file can serve as a root file system when used this way.

Getting It

In an asp.net core project, install the Soukoku.Extensions.FileProviders.Zip NuGet package.

Example

Assuming there's a zip file you want to load, you can do something like the following


// inside the Program.cs or Startup.cs
IApplicationBuilder app = ...

var zipProvider = new ZipFileProvider(@"path\to\my\zip-file.zip");
var options = new FileServerOptions
{
    FileProvider = provider,
    RequestPath = "/test", // optional
    EnableDirectoryBrowsing = true,
};
// required for extension-less files
options.StaticFileOptions.ServeUnknownFileTypes = true;
app.UseFileServer(options);
  

Then go to the url http://mysite/test in the browser to see the zip file content.

Sample Site

A sample asp.net core site is included in the solution that uses an old PDF.js dist zip file. Run it or look at the Startup.cs file to see how it's configured.

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 Framework net462 is compatible.  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.

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
2.0.3 62 12/29/2025
2.0.2 198 11/22/2025
2.0.1 211 9/8/2024
2.0.0 199 3/6/2024
1.1.3 29,267 10/17/2018
1.1.2 1,474 3/15/2018
1.1.1 1,205 11/19/2017
1.1.0 1,202 11/16/2017
1.0.1 1,187 11/14/2017
1.0.0 1,193 11/13/2017