![]() |
VOOZH | about |
dotnet add package Ansight.Maui --version 0.1.0
NuGet\Install-Package Ansight.Maui -Version 0.1.0
<PackageReference Include="Ansight.Maui" Version="0.1.0" />
<PackageVersion Include="Ansight.Maui" Version="0.1.0" />Directory.Packages.props
<PackageReference Include="Ansight.Maui" />Project file
paket add Ansight.Maui --version 0.1.0
#r "nuget: Ansight.Maui, 0.1.0"
#:package Ansight.Maui@0.1.0
#addin nuget:?package=Ansight.Maui&version=0.1.0Install as a Cake Addin
#tool nuget:?package=Ansight.Maui&version=0.1.0Install as a Cake Tool
All-in-one Ansight package for .NET MAUI apps.
This package references Ansight, adds the MAUI remote tools, and provides MauiAppBuilder setup helpers with automatic MAUI telemetry wiring.
The Ansight SDK is source-available software under the Ansight SDK Source-Available License. It is not open-source software. Production use is licensed only for use with Ansight Services.
using Ansight.Maui;
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.UseAnsight<App>();
return builder.Build();
}
Use UseAnsight<App>() to initialize and activate the runtime from the MAUI builder. It also automatically records foreground/background lifecycle transitions and records a screen-view event whenever a MAUI page appears. No AppDelegate, Android Application, or page OnAppearing calls are required for the default telemetry.
using Ansight.Maui;
using Ansight.Tools.SecureStorage;
builder.UseAnsight<App>(ansight =>
{
ansight.WithAdditionalLogger(new CustomAnsightLogger());
ansight.WithSecureStorageTools(secure =>
{
secure.WithStorageIdentifier("ExampleApp");
secure.AllowKeyPrefix("ansight.secure.");
});
});
The callback runs before default tool-suite registration. If it registers secure storage, preferences, MAUI tools, or another suite, the all-in-one setup skips the default registration for that suite and keeps the configured version. Full tool access is applied before the callback, so the callback can also narrow the guard.
Host auto-probe is enabled by the all-in-one defaults. Ansight remembers successful host sessions per Wi-Fi network reported by the connected host, stores the latest host/LAN address for that network, and cycles those remembered profiles during automatic reconnect attempts. Profiles expire after 14 days by default, and a successful reconnect refreshes the matching Wi-Fi profile. Configure retention in the same callback:
builder.UseAnsight<App>(ansight =>
{
ansight.WithHostConnectionProfileRetention(TimeSpan.FromDays(30));
});
If options are built manually, call the MauiAppBuilder overload with those options so the MAUI lifecycle and page-view hooks are registered:
var options = Options.CreateBuilder()
.WithAnsightMaui()
.Build();
builder
.UseMauiApp<App>()
.UseAnsight(options);
WithAnsightMaui(...) configures runtime defaults and MAUI tools only. UseAnsight(...) is the API that registers automatic foreground/background and Application.PageAppearing telemetry.
Remote tool scanning is controlled by AnsightRemoteToolsPolicy. The default AllowedWithWarnings policy logs detected tool type and assembly details and emits a build warning when tool packages are included. Because this all-in-one package intentionally includes remote tools, Disallowed will fail builds that reference it. Use Ansight.Core plus fine-grained Ansight.Tools.* references when you need protected Release or CI builds that exercise Disallowed. Set AnsightLogRemoteTools=false to suppress the detected-tool list.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 net9.0-maccatalyst18.0 is compatible. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.0-preview.1 | 59 | 6/3/2026 |
| 0.1.0 | 121 | 5/26/2026 |
| 0.1.0-preview.24 | 61 | 5/25/2026 |
| 0.1.0-preview.23 | 58 | 5/23/2026 |
| 0.1.0-preview.22 | 56 | 5/23/2026 |
| 0.1.0-preview.21 | 56 | 5/19/2026 |
| 0.1.0-preview.20 | 58 | 5/15/2026 |
| 0.1.0-preview.19 | 67 | 5/8/2026 |
| 0.1.0-preview.18 | 63 | 5/8/2026 |
| 0.1.0-preview.17 | 59 | 5/8/2026 |
| 0.1.0-preview.16 | 50 | 5/6/2026 |
| 0.1.0-preview.15 | 52 | 5/5/2026 |
| 0.1.0-preview.14 | 50 | 5/5/2026 |
| 0.1.0-preview.13 | 53 | 5/5/2026 |
| 0.1.0-pre9 | 102 | 5/3/2026 |
| 0.1.0-pre12 | 100 | 5/4/2026 |
| 0.1.0-pre11 | 96 | 5/4/2026 |
| 0.1.0-pre10 | 96 | 5/3/2026 |