Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a .NET library for file compare and that returns enumerable collections off added, changed and deleted lines?

Tags:

c#

.net

merge

Is there a (preferably free) .NET library for file compare and that returns enumerable collections off added, changed and deleted lines?

Basically everything beyond compare does but in .NET and returns collections you can interact with.

like image 521
Matt Avatar asked Jan 13 '11 20:01

Matt


1 Answers

What you're looking for is a Diff generation library.

I would take a look at DiffPlex.

You'll have to read the files into memory yourself, but it wouldn't be hard to build a wrapper class around DiffPlex so that you can easily use files from that point on...

like image 77
Justin Niessner Avatar answered Nov 15 '22 19:11

Justin Niessner