/SimilarNet

A text lines diff library for .Net. This library is a simple wrapper for the rust crate similar.

Primary LanguageC#

SimilarNet

A text lines diff library.
This library is a simple wrapper for the rust crate similar.

How to use

var hunks= Similar.DiffTexts("b\nc\nd\nd", "a\nb\nC\nd\nd\nx");

How to build

  1. Run the following command in the rust project (./similar-rs)
cargo build --release
  1. Place the built similar-rs.dll to ./SimilarNet/SimilarNet.
  2. Build the nupkg in c# project.