Ansight.OfflineCapture 1.0.2-preview.1

This is a prerelease version of Ansight.OfflineCapture.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Ansight.OfflineCapture --version 1.0.2-preview.1
                    
NuGet\Install-Package Ansight.OfflineCapture -Version 1.0.2-preview.1
                    
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="Ansight.OfflineCapture" Version="1.0.2-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ansight.OfflineCapture" Version="1.0.2-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="Ansight.OfflineCapture" />
                    
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 Ansight.OfflineCapture --version 1.0.2-preview.1
                    
#r "nuget: Ansight.OfflineCapture, 1.0.2-preview.1"
                    
#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 Ansight.OfflineCapture@1.0.2-preview.1
                    
#: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=Ansight.OfflineCapture&version=1.0.2-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ansight.OfflineCapture&version=1.0.2-preview.1&prerelease
                    
Install as a Cake Tool

Ansight.OfflineCapture

Offline capture storage, retention, runtime mutation, and ZIP export support for Ansight .NET apps.

using Ansight.OfflineCapture;

var offlineCapture = OfflineCapture.Configure(new OfflineCaptureOptions
{
    RootDirectory = ".ansight",
    MaximumSessionBytes = 128 * 1024 * 1024
});

await offlineCapture.InitializeAsync();
await offlineCapture.StartAsync();

await offlineCapture.UpdateOptionsAsync(options =>
{
    options.RetentionWindowOverride = TimeSpan.FromSeconds(30);
    options.SessionJpegCaptureEnabledOverride = false;
});

await offlineCapture.ExportToFileAsync("capture.zip", new OfflineCaptureExportOptions
{
    Password = "optional-password"
});

await offlineCapture.StopAsync();

High-volume data is written as compact JSONL in .ansight/sessions/{sessionId} with minified property names and append-only segment files.

ZIP exports include Ansight Studio session archive entries by default (session.json, session-data/*.json, and session-images/*) plus the raw .ansight files, so the exported capture can be imported into Studio for replay and analysis.

Offline capture uses the runtime retention period and SessionJpegCapture settings by default. Use the override properties only when offline capture needs behavior different from the active runtime configuration.

The primary manual test app is src/dotnet/samples/Ansight.OfflineCapture.MauiSample. It exercises capture activation, runtime mutation, touch/screenshot capture, lifecycle events, custom session properties, and ZIP export from a real .NET MAUI app.

See docs/specs/dotnet-offline-capture-sdk.md for the full storage and API spec.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-android35.0 is compatible.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst was computed.  net9.0-maccatalyst18.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on Ansight.OfflineCapture:

Package Downloads
Ansight

All-in-one Ansight SDK package for .NET apps, including core runtime, pairing, and remote tools.

Ansight.Maui

All-in-one Ansight SDK package for .NET MAUI apps, including core runtime, pairing, remote tools, automatic lifecycle and page-view telemetry, and MAUI inspection tools.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2-preview.3 49 7/7/2026
1.0.2-preview.2 67 7/6/2026
1.0.2-preview.1 60 6/30/2026