how to use diff-match-patch C# library

786 views
Skip to first unread message

chobo5

unread,
May 18, 2011, 7:01:16 PM5/18/11
to Diff Match Patch
Title pretty much says it all.

Does anyone have a tutorial on how to use the C# portion?

Neil Fraser

unread,
May 19, 2011, 4:23:33 PM5/19/11
to diff-mat...@googlegroups.com
On 18 May 2011 16:01, chobo5 <chob...@gmail.com> wrote:
> Title pretty much says it all.
>
> Does anyone have a tutorial on how to use the C# portion?

What level are you having problems with?
To start with you'll need a C# programming environment. A common one
is Microsoft Visual Studio. I use Mono and NUnit since they are free.
Here's my compile/test script for the Macintosh:

cd ~/Documents/diff-match-patch/csharp/
rm DiffMatchPatchTest.dll

echo "Compiling..."
gmcs -t:library -r:System.Web.dll -r:nunit.framework.dll
DiffMatchPatchTest.cs DiffMatchPatch.cs
echo "...done."

read -n 1 -p "Press any key to continue..."

echo

nunit-console DiffMatchPatchTest.dll
read -n 1 -p "Press any key to continue..."


--
Neil Fraser
http://neil.fraser.name

Reply all
Reply to author
Forward
0 new messages