Syncfusion.AspNetCore.BarcodeGenerator
34.2.9
Prefix Reserved
dotnet add package Syncfusion.AspNetCore.BarcodeGenerator --version 34.2.9
NuGet\Install-Package Syncfusion.AspNetCore.BarcodeGenerator -Version 34.2.9
<PackageReference Include="Syncfusion.AspNetCore.BarcodeGenerator" Version="34.2.9" />
<PackageVersion Include="Syncfusion.AspNetCore.BarcodeGenerator" Version="34.2.9" />
<PackageReference Include="Syncfusion.AspNetCore.BarcodeGenerator" />
paket add Syncfusion.AspNetCore.BarcodeGenerator --version 34.2.9
#r "nuget: Syncfusion.AspNetCore.BarcodeGenerator, 34.2.9"
#:package Syncfusion.AspNetCore.BarcodeGenerator@34.2.9
#addin nuget:?package=Syncfusion.AspNetCore.BarcodeGenerator&version=34.2.9
#tool nuget:?package=Syncfusion.AspNetCore.BarcodeGenerator&version=34.2.9
Syncfusion ASP.NET Core Barcode Generator Component
A component for rendering barcodes and QR codes in web applications. Supports a wide range of 1D and 2D barcode symbologies including Code 39, Code 128, QR Code, and Data Matrix with export capabilities.
Using this package with an AI coding agent
Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.The setup detects your project's platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.
Platform reference: https://ai.syncfusion.com/aspnet-core/llms.txt
Key Features
- Supports 1D barcodes: Code 39, Code 128, EAN, UPC, Codabar, and more
- Supports 2D barcodes: QR Code and Data Matrix
- Customizable height, width, and display text
- Export barcode as image (PNG, JPEG, SVG)
- Accessibility and RTL support
Common Setup
All Syncfusion ASP.NET Core controls share the same foundational setup steps:
1. Install NuGet Package
Install the BarcodeGenerator package and the themes package, which provides the stylesheets referenced below:
Install-Package Syncfusion.AspNetCore.BarcodeGenerator
Install-Package Syncfusion.AspNetCore.Themes
2. Register Tag Helper
Add the following to ~/Pages/_ViewImports.cshtml or ~/Views/_ViewImports.cshtml:
@addTagHelper *, Syncfusion.AspNetCore.Base
@addTagHelper *, Syncfusion.AspNetCore.BarcodeGenerator
3. Add Stylesheet & Script References
In your layout file (~/Pages/Shared/_Layout.cshtml):
<head>
<link rel="stylesheet" href="_content/Syncfusion.AspNetCore.Themes/styles/fluent2.css" />
<script src="_content/Syncfusion.AspNetCore.BarcodeGenerator/scripts/sf-barcode.min.js"></script>
<script src="_content/Syncfusion.AspNetCore.BarcodeGenerator/scripts/sf-datamatrix.min.js"></script>
<script src="_content/Syncfusion.AspNetCore.BarcodeGenerator/scripts/sf-qrcode.min.js"></script>
</head>
4. Register Script Manager
In your layout file (~/Pages/Shared/_Layout.cshtml), At the end of your <body> tag:
<ejs-scripts></ejs-scripts>
Quick Start
Step 1: Create a PageModel
Create ~/Pages/Index.cshtml.cs:
using Microsoft.AspNetCore.Mvc.RazorPages;
public class IndexModel : PageModel
{
public string QRCodeValue { get; set; } = "https://www.syncfusion.com";
public void OnGet()
{
// Initialize barcode data
}
}
Step 2: Create the View
Create ~/Pages/Index.cshtml:
@page
@model IndexModel
<div class="container mt-5">
<h2>Barcode Generator Demo</h2>
<div class="row">
<div class="col-md-6">
<h4>QR Code</h4>
<ejs-qrcode id="qrcode" value="@Model.QRCodeValue" width="200px" height="200px"></ejs-qrcode>
</div>
<div class="col-md-6">
<h4>Barcode (Code128)</h4>
<ejs-barcode id="barcode" value="123456789" type="Code128" width="200px" height="150px"></ejs-barcode>
</div>
</div>
<div class="row mt-4">
<div class="col-md-6">
<h4>DataMatrix</h4>
<ejs-datamatrix id="datamatrix" value="@Model.QRCodeValue" width="200px" height="200px"></ejs-datamatrix>
</div>
</div>
</div>
Step 3: Run the Application
Press Ctrl+F5 to run the application in your browser.
Documentation
Support
License
This is a commercial product and requires a paid license for possession or use. Review the Syncfusion EULA
About Syncfusion
Syncfusion provides 1600+ UI components and frameworks for web, mobile, and desktop development across multiple platforms:
Web: Blazor | ASP.NET Core | ASP.NET MVC | JavaScript | Angular | React | Vue
Desktop: WinForms | WPF | WinUI
Learn more at www.syncfusion.com
sales@syncfusion.com | Toll Free: 1-888-9-DOTNET
| Product | Versions 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. |
-
net10.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.9)
- Syncfusion.Licensing (>= 34.2.9)
-
net8.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.9)
- Syncfusion.Licensing (>= 34.2.9)
-
net9.0
- Newtonsoft.Json (>= 13.0.4)
- Syncfusion.AspNetCore.Base (>= 34.2.9)
- Syncfusion.Licensing (>= 34.2.9)
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 |
|---|---|---|
| 34.2.9 | 52 | 9/21/2026 |
| 34.2.8 | 95 | 9/14/2026 |
| 34.2.7 | 111 | 9/8/2026 |
| 34.2.6 | 98 | 8/31/2026 |
| 34.2.5 | 109 | 8/25/2026 |
| 34.2.4 | 187 | 8/17/2026 |
| 34.2.3 | 102 | 8/11/2026 |
| 34.2.2 | 115 | 8/5/2026 |
| 34.1.33 | 121 | 7/27/2026 |
| 34.1.32 | 120 | 7/21/2026 |
| 34.1.31 | 120 | 7/14/2026 |
| 34.1.30 | 122 | 7/9/2026 |
| 34.1.29 | 172 | 7/6/2026 |