Chriffizient.ExcelDiffEngine 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Chriffizient.ExcelDiffEngine --version 0.1.0                
NuGet\Install-Package Chriffizient.ExcelDiffEngine -Version 0.1.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="Chriffizient.ExcelDiffEngine" Version="0.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Chriffizient.ExcelDiffEngine --version 0.1.0                
#r "nuget: Chriffizient.ExcelDiffEngine, 0.1.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.
// Install Chriffizient.ExcelDiffEngine as a Cake Addin
#addin nuget:?package=Chriffizient.ExcelDiffEngine&version=0.1.0

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

ExcelDiffEngine

ExcelDiffEngine 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 ExcelDiffEngine to your project via NuGet:

dotnet add package Chriffizient.ExcelDiffEngine

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 ExcelDiffEngine;  
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.

Dependencies

  • EPPlus - for Excel file handling in .NET (Depending on the usage, a license can be required)
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. 
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.2.0 45 11/10/2024
0.1.1 48 11/10/2024
0.1.0 45 11/10/2024