Ansight.Pairing 1.2.0-preview.3

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

Ansight.Pairing

Ansight.Pairing adds package-owned native pairing acquisition to Ansight.Core.

It provides:

  • native QR scanning for HostConnectionRequest.QrCode(...)
  • automatic Android activity tracking and native Apple modal presentation
  • a default IHostConnectionConfigReader wired into the existing runtime-owned host connection flow

The Ansight and Ansight.Maui all-in-one packages include this package where supported.

License

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.

Usage

using Ansight;

var optionsBuilder = Options.CreateBuilder()
    .WithPlatformPairing();

var options = optionsBuilder.Build();

Runtime.InitializeAndActivate(options);
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.QrCode());

On Android, the package tracks the resumed Activity itself. The overload that accepts an activity provider remains available for unusual host frameworks.

Once enabled, the app can keep using the existing host connection requests:

await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.QrCode());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.Auto());
await Runtime.HostConnection.ConnectAsync(HostConnectionRequest.PayloadText(payload));

QrCode() is the normal first-use flow. It registers a random app-installation id using the one-use Studio invite. Auto() and host auto-probe then use the saved registration for reconnect. Payload and bundled inputs remain advanced alternatives for CI and simulator workflows.

Configure profile retention through the core options builder:

var options = Options.CreateBuilder()
    .WithHostConnectionProfileRetention(TimeSpan.FromDays(30))
    .Build();
Product Compatible and additional computed target framework versions.
.NET net9.0-android35.0 is compatible.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst18.0 is compatible.  net10.0-android was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Ansight.Pairing:

Package Downloads
Ansight

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0-preview.3 33 8/5/2026
1.2.0-preview.2 35 8/4/2026
1.2.0-preview.1 40 8/4/2026
1.1.0-preview.1 50 7/31/2026
1.0.2-preview.8 57 7/29/2026
1.0.2-preview.7 45 7/28/2026
1.0.2-preview.6 49 7/28/2026
1.0.2-preview.5 50 7/27/2026
1.0.2-preview.4 49 7/27/2026
1.0.2-preview.3 108 7/7/2026
1.0.2-preview.2 56 7/6/2026
1.0.2-preview.1 63 6/30/2026
1.0.1 132 6/24/2026
0.2.0-preview.1 69 6/3/2026
0.1.0 181 5/26/2026
0.1.0-preview.24 76 5/25/2026
0.1.0-preview.23 58 5/23/2026
0.1.0-preview.22 70 5/23/2026
0.1.0-preview.21 67 5/19/2026
0.1.0-preview.20 66 5/15/2026
Loading failed