RecursiveAI.OneDiff.Documents 1.0.1

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

RecursiveAI.OneDiff.Documents

Text diff and document comparison for .NET.

The document comparison engine: a compare model with source anchors, staged alignment (moves, splits, merges), an in-pair diff, grouping, typed changes with resolved values, cascades and defined-term renames, verification, a change ledger, combine and version chains, a change report, a versioned JSON form, and HTML redlines (inline and side by side). Every comparison is checked for completeness: old plus changes gives new, and new minus changes gives old; otherwise it falls back to a coarser complete grouping. Reads plain text; PDFs, scans and Word documents come from the adapter packages.

using OneDiff.Documents;

Redline.Create("v1.txt", "v2.txt", "redline.html");          // the form follows the extension
var cmp = Comparison.Of("v1.txt", "v2.txt");
foreach (var c in cmp.Changes.Where(c => c.IsSubstantive))
    Console.WriteLine($"{c.Kind}: {c.Old.Text} -> {c.New.Text}");

Depends on RecursiveAI.OneDiff and RecursiveAI.OneFont.

More: the compare model and the guarantee, change semantics, outputs, migrating from WmlComparer

Source, issues and the full README: https://github.com/recursive-ai-oss/onediff-csharp. Measured results, including the rows that are pending or lose: https://github.com/recursive-ai-oss/onediff-csharp/blob/main/docs/results.md.

This project is unaffiliated with any other project named OneDiff.

Licensed under MIT OR Apache-2.0. © Recursive AI, LLC.

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RecursiveAI.OneDiff.Documents:

Package Downloads
RecursiveAI.OneDiff.Pdf

Text diff and document comparison for .NET. PDF comparison: a document source that reads digital PDFs into the compare model with glyph-quad anchors, and a writer that marks the changes on the original pages with real PDF annotations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 119 11/5/2026
1.0.0 153 11/5/2026

See CHANGELOG.md in the repository.