Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diff tool that can be integrated into a C# app [closed]

Tags:

c#

diff

I have a small C# app and I'd like to provide the ability to preview diffs and accept changes. My inputs are only text files. I came across some tools like kdiff3 and winmerge and I was wondering if anyone's integrated them inside a C# app and if yes, how was it done? I also came across some nice projects on CodeProject from an earlier stackoverflow question but since those projects were written in 2004, I was wondering if you have any suggestions for an open source diff and merge tool that I can integrate? Thanks!

like image 545
user1427026 Avatar asked Sep 20 '12 03:09

user1427026


People also ask

Is there a diff tool in Windows?

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.

Is P4Merge still free?

P4Merge. Perforce, the company best known for its enterprise version control platform, also offers a solid diff tool: P4Merge is free of charge and comes with a basic feature set that makes it an interesting option on Windows, macOS and Linux.

How does meld work?

Meld helps you compare files, directories, and version controlled projects. It provides two- and three-way comparison of both files and directories, and has support for many popular version control systems. "Meld helps you review code changes and understand patches.

What is devart code Compare?

Code Compare is a free compare tool designed to compare and merge differing files and folders. Code Compare integrates with all popular source control systems: TFS, SVN, Git, Mercurial, and Perforce. Code Compare is shipped both as a standalone file diff tool and a Visual Studio extension.


2 Answers

Have you checked out csdiff ?

http://code.google.com/p/csdiff/

like image 141
Rndm Avatar answered Sep 30 '22 20:09

Rndm


You might want to checkout DiffPlex. It is (amongst other things) a library that can be used to generate text diffs. It also provides some higher level classes that provide a more complete "diff model" that should be easier to use for rendering diffs in, say, a textbox.

Personally, I have only used it for minor tasks, but it looks powerful enough to handle more sophisticated scenarios as well.

like image 20
Christian.K Avatar answered Sep 30 '22 21:09

Christian.K