Ansight.OfflineCapture
1.0.2-preview.1
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
<PackageReference Include="Ansight.OfflineCapture" Version="1.0.2-preview.1" />
<PackageVersion Include="Ansight.OfflineCapture" Version="1.0.2-preview.1" />
<PackageReference Include="Ansight.OfflineCapture" />
paket add Ansight.OfflineCapture --version 1.0.2-preview.1
#r "nuget: Ansight.OfflineCapture, 1.0.2-preview.1"
#:package Ansight.OfflineCapture@1.0.2-preview.1
#addin nuget:?package=Ansight.OfflineCapture&version=1.0.2-preview.1&prerelease
#tool nuget:?package=Ansight.OfflineCapture&version=1.0.2-preview.1&prerelease
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 | Versions 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. |
-
net9.0
- Ansight.Core (>= 1.0.2-preview.1)
- SharpZipLib (>= 1.4.2)
-
net9.0-android35.0
- Ansight.Core (>= 1.0.2-preview.1)
- SharpZipLib (>= 1.4.2)
-
net9.0-ios18.0
- Ansight.Core (>= 1.0.2-preview.1)
- SharpZipLib (>= 1.4.2)
-
net9.0-maccatalyst18.0
- Ansight.Core (>= 1.0.2-preview.1)
- SharpZipLib (>= 1.4.2)
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 |