Gengora.Tools 2.5.0

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

Gengora.Tools

Gengora.Tools contains the shared human-readable text diff used by Gengora compiler packages, tests, and diagnostic output.

Use it

Most consumers receive this package transitively. Generator or test tooling can reference it directly:

<PackageReference Include="Gengora.Tools" />
string report = Differ.Diff(expectedText, actualText, filePath);

The line comparison preserves CR, LF and CRLF, including the presence or absence of the last line ending. Changed lines show their actual ending markers in both sides and the unified view. An empty string means no text changes were detected. A nonempty result contains side-by-side and unified output with space/tab visualization.

Boundary

The diff is presentation for humans. It is not a patch format, semantic source comparison, or authorization to accept a generated golden. Generated-output acceptance must compare complete files and remain an explicit review action. Input controls, Unicode format/default-ignorable characters, non-ASCII whitespace and invalid UTF-16 units are displayed as visible \u{...} tokens in bodies and file-path headers. Ordinary Unicode, combining accents and the existing space/tab visualization are retained. The default-ignorable ranges are pinned to Unicode 17.0. The renderer's own ANSI styling remains active.

This presentation is not an injective encoding: literal \u{001B} text looks like the displayed ESC token. Widths count UTF-16 units rather than terminal columns, so wide/combining characters can still misalign the box. The renderer also has no input/output size budget. Use an explicit ordinal or byte comparison for equality and review complete source separately.

See generator testing.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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 Gengora.Tools:

Package Downloads
Gengora.Common

Compiler workspace, pipeline, and generated-output ownership primitives for Gengora generator hosts.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0 116 11/5/2026
2.5.0-rc.290-commonabi... 80 10/31/2026
2.5.0-rc.287-openedstream... 117 10/31/2026
2.5.0-rc.263-rawjson... 170 10/29/2026