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

Genocs Barcode Library

Genocs Barcode Library Banner

Encode common 1D barcode symbologies to SkiaSharp images. Supports net10.0, net9.0, and net8.0.

Installation

dotnet add package Genocs.BarcodeLibrary

Getting Started

Use this package to rasterize Code 128, Code 39, EAN/UPC, ITF-14, Pharmacode, and other 1D types without System.Drawing.Common.

Barcode.Encode selects a symbology, encodes the payload to a bar/space pattern, then draws an SKImage. Set IncludeLabel when you want human-readable text under the bars.

This library is encode-only. Scanning or decoding 1D barcodes is not supported.

using Genocs.BarcodeLibrary;
using SkiaSharp;

using var barcode = new Barcode { IncludeLabel = true };
using SKImage image = barcode.Encode(
    BarcodeType.UpcA,
    "038000356216",
    SKColors.Black,
    SKColors.White,
    width: 290,
    height: 120);

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

Static helpers such as Barcode.DoEncode wrap the same path for one-shot generation.

Main Entry Points

  • Barcode
  • Barcode.Encode
  • Barcode.DoEncode
  • BarcodeType
  • Barcode.SaveImage / Barcode.GetImageData

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 barcode 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 122 10/10/2026
5.0.2 81,461 5/3/2024
5.0.1 3,853 4/4/2024
5.0.0 430 4/4/2024
3.0.0 110 10/10/2026

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