Agentics.Extensions.Aspire.QrCode
0.2.6
dotnet add package Agentics.Extensions.Aspire.QrCode --version 0.2.6
NuGet\Install-Package Agentics.Extensions.Aspire.QrCode -Version 0.2.6
<PackageReference Include="Agentics.Extensions.Aspire.QrCode" Version="0.2.6" />
<PackageVersion Include="Agentics.Extensions.Aspire.QrCode" Version="0.2.6" />
<PackageReference Include="Agentics.Extensions.Aspire.QrCode" />
paket add Agentics.Extensions.Aspire.QrCode --version 0.2.6
#r "nuget: Agentics.Extensions.Aspire.QrCode, 0.2.6"
#:package Agentics.Extensions.Aspire.QrCode@0.2.6
#addin nuget:?package=Agentics.Extensions.Aspire.QrCode&version=0.2.6
#tool nuget:?package=Agentics.Extensions.Aspire.QrCode&version=0.2.6
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 theAspire.Hostingnamespace, so a singleusing 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 | Versions 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. |
-
net10.0
- Aspire.Hosting (>= 13.4.6)
- QRCoder (>= 1.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.