private void ShowDifferencesInBrowser(string build1Text, string build2Text) { var diff = new diff_match_patch(); var linesResult = diff.diff_linesToChars(build1Text, build2Text); var lineText1 = linesResult[0]; var lineText2 = linesResult[1]; var lineArray = linesResult[2] as List <string>; var diffs = diff.diff_main(lineText1.ToString(), lineText2.ToString(), true); diff.diff_charsToLines(diffs, lineArray); var diffPrettyHtml = diff.diff_prettyHtmlSidebySide(diffs); var mydocpath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); using (var outputFile = new StreamWriter(mydocpath + @"\CompareBuilds.html")) { outputFile.WriteLine(diffPrettyHtml); } Process.Start("IExplore.exe", mydocpath + @"\CompareBuilds.html"); }