Agentics.Extensions.Aspire.QrCode 0.2.2

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

Agentics.Extensions.Aspire.QrCode

An .NET Aspire hosting integration that adds a clickable "📱 scan me" QR-code link to a resource in the Aspire dashboard. Clicking it opens a tiny localhost page that renders a QR code (via QRCoder, no System.Drawing) for the target URL — scan it onto your phone.

Published as Agentics.Extensions.Aspire.QrCode; the API lives in the Aspire.Hosting namespace, so a single using Aspire.Hosting; (implicit in an AppHost) exposes it.

Install

dotnet add package Agentics.Extensions.Aspire.QrCode

Usage

// QR for the resource's own endpoint (loopback is rewritten to the LAN IPv4
// so a phone on the same wifi can reach it):
builder.AddProject<Projects.Web>("web")
       .WithEndpointQRCode("http", "📱 Scan to open on phone");

// QR for a fixed URL:
someResource.WithUrlQRCode("https://example.com");

// QR for a lazily-resolved URL (e.g. a tunnel endpoint that only materializes at runtime):
someResource.WithUrlQRCode(tunnel.GetEndpoint("public"), "📱 Scan to open on phone");

Targets are resolved per request, so tunnel URLs that only exist once the tunnel is up work correctly. The QR page binds to 127.0.0.1 — only the dev machine views it; the phone just scans the encoded URL.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.2.6 99 9/3/2026
0.2.5 111 8/29/2026
0.2.4 115 8/20/2026
0.2.3 147 8/3/2026
0.2.2 123 8/1/2026
0.2.1 115 8/1/2026
0.2.0 120 8/1/2026
0.1.0 129 7/24/2026