Meziantou.Framework.DiffEngine 2.0.4

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

Meziantou.Framework.DiffEngine

Meziantou.Framework.DiffEngine resolves installed diff tools and provides launch arguments for comparing two files.

This package is designed for snapshot testing scenarios and is API-compatible with the subset needed by:

  • Meziantou.Framework.SnapshotTesting
  • Meziantou.Framework.InlineSnapshotTesting

Supported public API

  • DiffTool enum
  • DiffTools.TryFindByName(DiffTool, out ResolvedTool?)
  • DiffTools.TryFindByExtension(string, out ResolvedTool?)
  • ResolvedTool (Name, Tool, ExePath, SupportsText, BinaryExtensions, GetArguments)

Example

if (DiffTools.TryFindByName(DiffTool.VisualStudioCode, out var tool))
{
    var arguments = tool.GetArguments("received.json", "verified.json");
    Console.WriteLine($"{tool.ExePath} {arguments}");
}

Environment variables

  • DiffEngine_<ToolName>: override executable detection for one tool (file path or directory). When the variable is set but the executable cannot be found, TryFindByName throws so the typo is not silently ignored, while TryFindByExtension skips that tool and keeps looking at the others.
  • DiffEngine_TargetOnLeft=true: invert generated argument order
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Meziantou.Framework.DiffEngine:

Package Downloads
Meziantou.Framework.InlineSnapshotTesting

Enables verification of objects using inline snapshots

Meziantou.Framework.SnapshotTesting

Enables verification of objects using file-based snapshots

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.4 71 9/3/2026
2.0.3 458 8/30/2026
2.0.2 1,138 8/23/2026
2.0.1 6,249 7/8/2026
2.0.0 792 7/5/2026
1.0.7 1,519 6/28/2026
1.0.6 761 6/22/2026
1.0.5 2,195 6/14/2026
1.0.4 183 6/13/2026
1.0.3 158 6/13/2026
1.0.2 1,191 6/7/2026
1.0.1 4,162 5/23/2026
1.0.0 169 5/18/2026