Lyt.QrCode 1.0.3

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

Lyt.QrCode

QrCode Library, Encode and Decode, zero dependencies, all written in C#.

Nuget: https://www.nuget.org/packages/Lyt.QrCode

Complete Documentation: https://github.com/LaurentInSeattle/Lyt.QrCode/blob/main/Documentation.md

Features

  • Supports Both Encode and Decode.

  • Zero dependencies for both encoding and decoding. Use everywhere: Absolutely no OS dependencies, no UI framework dependencies, just C#!

  • Many output formats: PNG, BMP, SVG, XAML, aXAML, Raw data... With no dependencies, and with more to come...

  • Built-in support for both encoding and decoding of canonical content such as: Links, GeoLocation, Wifi, VCard, Email, and more...

  • Nuget now Available on Nuget.Org.

  • Fast: Real time encoding and decoding, with multithreaded async/await support.

  • Modern: Coded with .Net 10, taking advantage of all latest performance improvements of the recent .Net releases.

  • Simple, configurable and streamlined API.

Installation

Install "Lyt.QrCode" via NuGet Package Manager or use "Manage Nuget Packages" in Visual Studio

PS C:....> Install-Package Lyt.QrCode

Quick Start


using Lyt.QrCode.API;
using Lyt.QrCode.Content;

// Encoding 

    private const string link = "https://github.com/LaurentInSeattle/Lyt.QrCode";

    // Encode provided link as a PNG image using default parameters 
    var encodeImage = Qr.Encode<string, byte[]>(link);
    if (encodeImage.Success)
    {
        string fullPath = < .... >
        File.WriteAllBytes(fullPath, encodeImage.Result);
    }

See the Lyt.QrCode.Encode.Demo console application for more code examples.

// Decoding 

        var sourceImage = this.LoadSourceImage(filename + ".png");
        var result = Qr.Decode(sourceImage, OnDetect);
        if (result.Success)
        {
            Console.WriteLine("Decoded, Content:  " + result.Text);
            if (result.IsParsed)
            {
                Console.WriteLine("Parsed, Type:  " + result.ParsedType.FullName);
                if (result.TryGet(out QrVCard? qrCard))
                {
                    Console.WriteLine("Parsed as a 'VCard'");
                    Console.WriteLine($"{qrCard.FirstName} {qrCard.LastName}");
                }
            }
        }

See the Lyt.QrCode.Decode.Demo console application for more code examples.

Complete Documentation: https://github.com/LaurentInSeattle/Lyt.QrCode/blob/main/Documentation.md

Contributing

Contributions are always welcome! Please feel free to submit a Pull Request.

License and Credits

  • Encoding:

    Derivative work from QrCodeGenerator by Manuel Bleichenbacher - MIT License

  • Decoding:

    Derivative work from Zebra Crossing by the Zebra Crossing Team and al. - Apache 2.0 License

  • QR Content classes, asynchrony, performance improvements, modernization:

    Original code and refactoring by Laurent Y. Testud

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.
  • net10.0

    • No dependencies.

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
1.0.3 87 4/4/2026
1.0.2 88 3/29/2026
1.0.1 91 3/25/2026
1.0.0 81 3/23/2026