Lyo.QRCode.QRCoder 3.0.0

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

Lyo.QRCode.QRCoder

IQRCodeService from Lyo.QRCode implemented with QRCoder. Pick this for JPEG / Bitmap on Windows or for QRCoder's renderers. BuiltInQRCodeService is the in-library ISO encoder with no extra NuGet.

Examples

Generate with QRCoder

using Lyo.QRCode;
using Lyo.QRCode.Models;
using Lyo.QRCode.QRCoder;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddQRCoderQrCodeService(o => {
    o.DefaultSize = 16; // pixels per module
    o.DefaultFormat = QRCodeFormat.Png; // Jpeg / Bmp also supported via QRCoder
    o.DefaultErrorCorrectionLevel = QRCodeErrorCorrectionLevel.Medium;
});

var qr = services.BuildServiceProvider().GetRequiredService<IQRCodeService>();
var result = await qr.GenerateAsync("https://example.com");

Bind options from configuration

services.AddQRCoderQrCodeServiceFromConfiguration(builder.Configuration);

appsettings sample

{
  "QRCodeService": {
    "DefaultSize": 16,
    "DefaultFormat": "Png",
    "DefaultErrorCorrectionLevel": "Medium",
    "MinSize": 1,
    "MaxSize": 2000,
    "EnableMetrics": false
  }
}

Types

Type Description
QRCoderQRCodeService IQRCodeService implementation. No image dependencies. Logo, frame, caption, and padding are the caller's job through Lyo.Images.IImageDecorationService.
QRCoderQrCodeServiceExtensions Container helpers: AddQRCoderQrCodeService(Action<QRCodeServiceOptions>?), AddQRCoderQrCodeService(QRCodeServiceOptions), AddQRCoderQrCodeServiceFromConfiguration(IConfiguration, sectionName?).

Platform and decoration

  • JPEG / Bitmap go through System.Drawing and run on Windows. PNG/SVG paths are cross-platform.
  • ReadFromImageAsync decoding uses QRCodeZxingRead in this package (ZXing.Net + ImageSharp), matching the built-in service.
  • Decoration is out of scope. Center logos and frames are no longer applied by the QRCoder service. Send the returned bytes through Lyo.Images.IImageDecorationService.Pipeline(...) and call Overlay / AddFrame / AddCaption / AddOuterPadding as needed (see the Lyo.Images README).

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.QRCode (direct, lyo)
  • Lyo.Result (direct, lyo)
  • Microsoft.Extensions.Configuration.Binder 10.0.5 (direct, microsoft)
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.5 (direct, microsoft)
  • Microsoft.Extensions.Logging.Abstractions 10.0.5 (direct, microsoft)
  • QRCoder 1.8.0 (direct, third-party)
  • Lyo.Common.Core (transitive, lyo)
  • Lyo.Exceptions (transitive, lyo)
  • Lyo.Metrics (transitive, lyo)
  • Microsoft.Bcl.AsyncInterfaces 10.0.5 (transitive, microsoft, netstandard2.0)
  • SixLabors.ImageSharp 3.1.12 (transitive, third-party)
  • System.Memory 4.6.3 (transitive, microsoft, netstandard2.0)
  • System.Text.Json 10.0.5 (transitive, microsoft, netstandard2.0)
  • ZXing.Net 0.16.11 (transitive, third-party)
  • ZXing.Net.Bindings.ImageSharp.V3 0.16.18 (transitive, third-party)
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
3.0.0 111 10/23/2026
2.0.1 129 9/14/2026
2.0.0 128 9/9/2026
1.0.13 130 8/25/2026
1.0.11 122 8/23/2026
1.0.9 126 8/22/2026
1.0.6 120 8/20/2026
1.0.4 123 8/20/2026
1.0.3 120 8/19/2026
1.0.2 126 8/19/2026
1.0.1 122 8/18/2026
1.0.0 130 8/16/2026