NetBarcode 1.6.0
See the version list below for details.
Install-Package NetBarcode -Version 1.6.0
dotnet add package NetBarcode --version 1.6.0
<PackageReference Include="NetBarcode" Version="1.6.0" />
paket add NetBarcode --version 1.6.0
#r "nuget: NetBarcode, 1.6.0"
// Install NetBarcode as a Cake Addin
#addin nuget:?package=NetBarcode&version=1.6.0
// Install NetBarcode as a Cake Tool
#tool nuget:?package=NetBarcode&version=1.6.0
NetBarcode

Barcode generation library written in .NET Core compatible with .NET Standard 2.
Supported barcodes:
- CODE128
- CODE128 (automatic mode switching)
- CODE128 A/B/C
- EAN
- EAN-13
- EAN-8
- CODE11
- CODE39
- CODE39E
- CODE93
- Codabar
Install
On Nuget:
PM> Install-Package NetBarcode
.NET CLI
> dotnet add package NetBarcode
NuGet
https://www.nuget.org/packages/NetBarcode
Requirements
This library uses System.Drawing.Common
which requires the following installed packages:
sudo apt install libc6-dev
sudo apt install libgdiplus
Mac
brew update
brew install mono-libgdiplus
Using
var barcode = new Barcode("543534"); // default: Code128
Change barcode type
var barcode = new Barcode("543534", Type.Code93);
Show label
var barcode = new Barcode("543534", Type.Code128, true);
Saving in a image file
var value = barcode.SaveImageFile("./path"); // default: ImageFormat.Jpeg
Change image format
var value = barcode.SaveImageFile("./path", ImageFormat.Png); // formats: Bmp, Gif, Jpeg, Png...
Get string with base64 image to use in HTML
var value = barcode.GetBase64Image();
To manipulate the image
var image = barcode.GetImage();
Version 1.5
ImageSharp was added in place of System.Drawing due to break of support from .NET 6, more information click here.
There is a small compatibility break only if you are manipulating the image with the GetImage method or customizing font and color. In these cases the namespaces have changed to SixLabors.ImageSharp
.
License
NetBarcode is shared under the MIT license. This means you can modify and use it however you want, even for comercial use. But please give this repository a ⭐️.
Donate
If you found it useful, please consider paying me a coffee.
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETStandard 2.0
- SixLabors.Fonts (>= 1.0.0-beta17)
- SixLabors.ImageSharp (>= 2.1.1)
- SixLabors.ImageSharp.Drawing (>= 1.0.0-beta14)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on NetBarcode:
Package | Downloads |
---|---|
Bastion.Statements.Api
Package Description |
|
Zideun.DFeBR.EmissorNFe
Novo framework para emissão e logística de documentos fiscais para a plataforma .NET, compatível com .NET Core e .NET 4.x |
|
DFeBR.EmissorNFe
Novo framework para emissão e logística de documentos fiscais para a plataforma .NET, compatível com .NET Core e .NET 4.x |
|
Nexxtsoft.Yaitty.Api.Models
Yaitty API Models |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-beta.1 | 1,995 | 7/12/2021 |
1.6.0 | 391 | 6/20/2022 |
1.5.2 | 225 | 6/16/2022 |
1.5.0 | 1,487 | 5/20/2022 |
1.4.5 | 7,431 | 3/20/2022 |
1.4.4 | 33,907 | 9/25/2021 |
1.4.3 | 7,735 | 7/9/2021 |
1.4.2 | 205 | 7/9/2021 |
1.4.1 | 9,496 | 5/19/2021 |
1.4.0 | 72,254 | 12/30/2020 |
1.3.0 | 1,134 | 12/24/2020 |
1.2.0 | 401 | 12/24/2020 |
1.1.0 | 64,168 | 8/22/2020 |
1.0.8 | 45,810 | 3/17/2020 |
1.0.7 | 67,193 | 11/27/2018 |
1.0.6 | 6,299 | 9/1/2018 |
1.0.5 | 5,624 | 7/17/2018 |
1.0.2 | 831 | 7/10/2018 |
1.0.0 | 8,217 | 12/22/2017 |