Ivy.Widgets.DiffView 1.2.42

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ivy.Widgets.DiffView --version 1.2.42
                    
NuGet\Install-Package Ivy.Widgets.DiffView -Version 1.2.42
                    
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="Ivy.Widgets.DiffView" Version="1.2.42" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ivy.Widgets.DiffView" Version="1.2.42" />
                    
Directory.Packages.props
<PackageReference Include="Ivy.Widgets.DiffView" />
                    
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 Ivy.Widgets.DiffView --version 1.2.42
                    
#r "nuget: Ivy.Widgets.DiffView, 1.2.42"
                    
#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 Ivy.Widgets.DiffView@1.2.42
                    
#: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=Ivy.Widgets.DiffView&version=1.2.42
                    
Install as a Cake Addin
#tool nuget:?package=Ivy.Widgets.DiffView&version=1.2.42
                    
Install as a Cake Tool

Ivy.Widgets.DiffView

A diff viewer widget for Ivy Framework powered by react-diff-view.

Installation

dotnet add package Ivy.Widgets.DiffView

Widgets

DiffView

A unified/split diff viewer component for displaying git-style diffs.

External React Libraries Used:

Basic Usage
using Ivy.Widgets.DiffView;

// Simple unified diff
new DiffView()
    .Diff(myDiffString)

// Split view with revision names
new DiffView()
    .Diff(myDiffString)
    .Split()
    .OldRevision("a/file.txt")
    .NewRevision("b/file.txt")

// With line click handler
new DiffView()
    .Diff(myDiffString)
    .OnLineClick(line => Console.WriteLine($"Line {line} clicked"))
Props
Prop Type Default Description
Diff string? null Unified diff string (git diff output)
ViewType DiffViewType Unified View mode (Unified or Split)
Language string? null Language hint for syntax highlighting
OldRevision string? null Old file revision name
NewRevision string? null New file revision name
Events
Event Args Description
OnLineClick int Fired when a line gutter is clicked

Development

Building

  1. Install frontend dependencies:

    cd frontend
    pnpm install
    
  2. Build the frontend:

    pnpm build
    
  3. Build the project from the root folder:

    dotnet build
    
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.
  • net10.0

    • Ivy (>= 1.2.42)

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
1.2.44 92 4/16/2026
1.2.43 148 4/16/2026
1.2.42 133 4/15/2026
1.2.42-pre-20260414163705 87 4/14/2026
1.2.40 124 4/14/2026
1.2.39-pre-20260414141311 81 4/14/2026
1.2.37-pre-20260414092333 83 4/14/2026
1.2.37-pre-20260414091731 79 4/14/2026
1.2.37-pre-20260414084831 88 4/14/2026
1.2.37-pre-20260414084740 81 4/14/2026
1.2.37-pre-20260412104447 89 4/12/2026
1.2.37-pre-20260410110521 975 4/10/2026
1.2.37-pre-20260410104611 84 4/10/2026
1.2.37-pre-20260409163352 342 4/9/2026
1.2.37-pre-20260408144108 401 4/8/2026
1.2.37-pre-20260408132826 92 4/8/2026
1.2.36 428 4/8/2026
1.2.36-pre-20260408100712 151 4/8/2026