Genocs.QRCodeLibrary 3.0.0

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 5.0.0 or higher.

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

Genocs QRCode Library

Genocs QRCode Library Banner

Encode QR codes as SkiaSharp images, SVG, PNG bytes, and related formats. Optional image decode is included. Supports net10.0, net9.0, and net8.0.

Installation

dotnet add package Genocs.QRCodeLibrary

Getting Started

Use this package to build a QR module matrix with QRCodeGenerator, then render it with a format-specific class (QRCode, SvgQRCode, PngByteQRCode, and others). Payload helpers under PayloadGenerator produce structured strings (Wi-Fi, vCard, Girocode, and more) that you pass into CreateQrCode.

Rendering uses SkiaSharp and does not depend on System.Drawing.Common.

using Genocs.QRCodeLibrary.Encoder;
using SkiaSharp;

using var generator = new QRCodeGenerator();
using QRCodeData data = generator.CreateQrCode("Hello, World!", QRCodeGenerator.ECCLevel.M);
using var qrCode = new QRCode(data);
using SKImage image = qrCode.GetGraphic(20, SKColors.Black, SKColors.White, drawQuietZones: true);

using var stream = File.OpenWrite("qrcode.png");
image.Encode(SKEncodedImageFormat.Png, 100).SaveTo(stream);

To read a QR image, use QRDecoder.ImageDecoder(SKImage). Decode is experimental: crisp generated PNGs are covered by tests; camera-style JPEGs are not a supported path yet.

Avoid the GetGraphic overload that takes an icon or logo overlay.

Main Entry Points

  • QRCodeGenerator
  • QRCode / QRCode.GetGraphic
  • SvgQRCode
  • PngByteQRCode / BitmapByteQRCode / Base64QRCode
  • PayloadGenerator
  • QRDecoder.ImageDecoder

Warning Policy

This package follows the quality gate in build-and-test.yml:

  • Libraries must build for net10.0, net9.0, and net8.0.
  • Unit tests must pass before merging QR encode or decode changes.

Support

Release Notes

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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
7.0.0 99 10/10/2026
5.0.2 86,335 5/3/2024
5.0.1 11,653 4/4/2024
5.0.0 335 4/4/2024
3.1.0 33,251 3/30/2022
3.0.73 670 3/30/2022
3.0.72 659 3/30/2022
3.0.0 85 10/10/2026
2.0.71 668 3/30/2022
2.0.70 660 3/30/2022
2.0.69 1,225 1/20/2022
2.0.68 573 1/2/2022
1.1.1 565 12/4/2021
1.0.67 531 1/2/2022
1.0.66 486 1/2/2022
1.0.65 564 1/2/2022
1.0.2 835 9/30/2020
1.0.1 781 2/5/2020

The change log and breaking changes are listed here.
           https://github.com/Genocs/qrcode/releases