EMVCard.Core 2.1.1

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

EMVCard.Core

This library provides core functionality for EMV card transaction storage and processing, including:

  • Transaction data model (CardTransaction)
  • Storage interfaces and implementations (JSON and SQLite)
  • Batch and summary operations for high performance
  • .NET Framework 4.7.2 compatibility
  • New in 2.2.0: Default logging enabled for all operations

Features

  • Save, retrieve, filter, and export EMV card transactions
  • JSON and SQLite storage backends
  • Batch insert with SaveBatchAsync
  • Lightweight summary queries with GetAllSummaryAsync
  • Designed for integration with Windows Forms and other .NET apps
  • Event-driven: Subscribe to CardRead to react to card reads in real time
  • Improved Documentation: Updated guides and examples for better developer experience
  • Default Logging: Enabled by default for better debugging and monitoring

What's New in v2.2.0

  • Default Logging: Logging is now enabled by default across all operations
  • Maintenance and compatibility improvements
  • Updated NuGet version: 2.2.0
  • Enhanced SQLite transaction storage with better error handling

Usage

Install via NuGet:

Install-Package EMVCard.Core -Version 2.2.0

.NET CLI:

dotnet add package EMVCard.Core --version 2.2.0

Example:

using EMVCard.Storage;

var storage = new SQLiteTransactionStorage("transactions");
await storage.SaveAsync(transaction);

// Batch insert
await storage.SaveBatchAsync(transactions);

// Get summaries
var summaries = await storage.GetAllSummaryAsync();

// Subscribe to card read event
var reader = new EmvCardReader();
reader.CardRead += (s, e) =>
{
    Console.WriteLine($"Card read: {e.CardData.PAN}");
};

Requirements

  • .NET Framework 4.7.2
  • Newtonsoft.Json
  • (Optional) System.Data.SQLite for SQLite storage

License

MIT

Copyright holders: Johan H

NfcReaderLib

A .NET library for PC/SC smart card communication, JH Token generation, and EMV/NFC card utilities.

NuGet Packages

Package Version Description
NfcReaderLib 2.0.3 PC/SC communication, JH Token generation
EMVCard.Core 2.0.4 EMV card reading, storage, and export

Installation

Package Manager Console:

Install-Package NfcReaderLib -Version 2.0.3
Install-Package EMVCard.Core -Version 2.0.4

.NET CLI:

dotnet add package NfcReaderLib --version 2.0.3
dotnet add package EMVCard.Core --version 2.0.4

Features

  • PC/SC card reader support (contact/contactless)
  • 32/64-bit Windows support
  • JH Token (SHA-256) generation from ICC certificates
  • EMV TLV parsing, PSE/PPSE, GPO, record reading
  • Card polling, PAN masking, async operations

What's New in v2.0.4

  • Maintenance and compatibility improvements
  • Updated NuGet version: 2.0.4

Requirements

  • .NET Framework 4.7.2

License

MIT

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 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
2.1.1 108 1/23/2026
2.1.0 93 1/18/2026
2.0.4 98 1/14/2026
2.0.1 97 1/14/2026
1.0.3 98 1/13/2026
1.0.2 103 1/1/2026
1.0.1 103 1/1/2026
1.0.0 102 12/31/2025

v2.1.1 - Minor updates and version bump for release.