Chriffizient.XlsxDiffEngine 0.6.2

dotnet add package Chriffizient.XlsxDiffEngine --version 0.6.2                
NuGet\Install-Package Chriffizient.XlsxDiffEngine -Version 0.6.2                
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="Chriffizient.XlsxDiffEngine" Version="0.6.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chriffizient.XlsxDiffEngine --version 0.6.2                
#r "nuget: Chriffizient.XlsxDiffEngine, 0.6.2"                
#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.
// Install Chriffizient.XlsxDiffEngine as a Cake Addin
#addin nuget:?package=Chriffizient.XlsxDiffEngine&version=0.6.2

// Install Chriffizient.XlsxDiffEngine as a Cake Tool
#tool nuget:?package=Chriffizient.XlsxDiffEngine&version=0.6.2                

XlsxDiffEngine

XlsxDiffEngine is a simple C# library for comparing Excel (.xlsx) files. It provides powerful configuration options to customize data comparisons, allowing you to generate annotated output files that highlight all changes, additions, and removals. (For reading and writing Excel files, the EPPlus library is used.)

Logo

Features

  • Flexible comparison options: Configure key columns, secondary key columns, ignored columns, group columns, text-only comparison columns, and more.
  • Customizable data handling: Define data ranges, set merging options, add skip rules, apply modification rules, or manage individual requirements with callbacks.
  • Visual change indicators: Highlight changes, additions, and deletions in the output using different cell styling and comment options.
  • Configurable output: Customize headers, auto-fit columns, freeze panes, and apply auto-filters for enhanced readability.

Installation

Add XlsxDiffEngine to your project via NuGet:

Chriffizient.XlsxDiffEngine on NuGet

dotnet add package Chriffizient.XlsxDiffEngine

Getting Started

Basic Usage

Use the ExcelDiffBuilder to set up Excel files and key columns. Adjust other comparison options like value changed markers, ignored columns, modification rules, and styling preferences. Use the Build method to save an annotated comparison Excel output file.

Example

using XlsxDiffEngine;  
using OfficeOpenXml;  
  
new ExcelDiffBuilder()
    .AddFiles(x => x
        .SetOldFile(oldFileStream, "OldFile.xlsx")
        .SetNewFile(newFileStream, "NewFile.xlsx")
        )
    .SetKeyColumns("ID") // Optional
    .Build("ComparisonOutput.xlsx");

For more examples, take a look at the tests, or try out the functions via the XlsxDiffTool WPF application.

Dependencies

  • EPPlus - for Excel file handling in .NET (Depending on the usage, a paid license can be required)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.6.2 75 1/19/2025
0.6.1 34 1/8/2025
0.6.0 56 1/7/2025