DiffLib 2025.0.0

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

// Install DiffLib as a Cake Tool
#tool nuget:?package=DiffLib&version=2025.0.0                

DiffLib

build codecov codeql

This project contains code that will do Diff generation, comparing two collections of any type and outputting the differences between the two, including an attempt to align up differences, specifically in text files.

For now, the merge functionality has been removed. This might be added back in the future, but there are serious issues with the merge functionality that I am unable to resolve. Likely the entire merge functionality has to be reworked from the ground. So the new .NET 8/9 versions of the library will not contain the merge functionality. If I can find a way to reimplement the functionality, or fix the issues with the current implementation, I will add them back, but right now the demand for a .NET 8 and 9 compatible version is higher than the number of people having used the merge functions.

<strike>The library also comes with 3-way merge functionality, allowing you to take two collections that both started as a 3rd common base but has been modified, and then merge the modifications into a final output. This is the type of 3-way merge that version control systems do.</strike>

Details:

  • Language: C# 13.0
  • Runtimes:
    • .NET 8
    • .NET 9

(note, there are older versions of the package that supports older versions of .NET)

Repository and project location: GitHub
Maintainer: Lasse V. Karlsen


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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DiffLib:

Package Downloads
ReactiveCompositeCollections

A .Net library for composing reactive collections providing monadic types to support LINQ.

CompuMaster.Text.Diff

Quickly dump a diff output to System.Console, plain text or to HTML

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on DiffLib:

Repository Stars
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
icsharpcode/SharpDevelop
#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
aerror2/ILSpy-For-MacOSX
ILSpy for Mac OS X ,Linux and any mono supported platform
AlexAlbala/Alter-Native
Source code translator: from high-level language to native language (C++)
Version Downloads Last updated
2025.0.0 19 1/8/2025
2017.7.26.1241 342,762 7/26/2017
2017.5.21.1535 2,190 5/21/2017
2017.4.24.2347 2,207 4/24/2017
2017.4.9.2148 2,043 4/9/2017
2016.4.21.1027 20,641 4/21/2016
2015.7.24.1614 4,958 7/24/2015
2014.2.19.1150 4,702 2/19/2014
1.0.0.55 28,642 4/16/2011
1.0.0 4,165 1/7/2011