SheetStream.AspNetCore 0.4.0

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

SheetStream.AspNetCore

ASP.NET Core helpers for SheetStream, the MIT-licensed, zero-dependency streaming .xlsx library.

dotnet add package SheetStream.AspNetCore

Return an Excel download in one line

using SheetStream;
using SheetStream.AspNetCore;

// Minimal API, synchronous data
app.MapGet("/products.xlsx", (ProductService products) =>
    ExcelResults.Excel("products.xlsx", wb => wb.Worksheets.Add("Products").LoadFromCollection(products.All())));

// Minimal API, streamed from EF Core without loading the table into memory
app.MapGet("/orders.xlsx", (AppDb db) =>
    ExcelResults.Excel("orders.xlsx", async (wb, ct) =>
        await wb.Worksheets.Add("Orders").LoadFromAsyncEnumerable(
            db.Orders.AsNoTracking().AsAsyncEnumerable(),
            new LoadOptions { TableName = "Orders" }, ct)));

// MVC controller (.NET 7+ executes IResult return values)
[HttpGet("export")]
public IResult Export() => ExcelResults.Excel("report.xlsx", wb => BuildReport(wb));

The workbook is built into a temporary file and copied to the response asynchronously, so memory stays flat for large exports, the response has an accurate Content-Length, and no synchronous I/O touches the response body. Non-ASCII file names are sent correctly through filename*.

MIT licensed, published by P4 Software.

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 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 was computed.  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. 
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
0.4.0 87 10/14/2026
0.3.0 106 10/14/2026