static BeyondCompareDiffProgram()
 {
     DefaultSearchPaths = WindowsProgramFilePaths
                          .SelectMany(p =>
                                      new[]
     {
         $@"{p}\Beyond Compare 4\BCompare.exe",
         $@"{p}\Beyond Compare 3\BCompare.exe"
     }
                                      )
                          .ToArray();
 }
示例#2
0
        static BeyondCompareDiffProgram()
        {
            var paths = new List <string>();

            if (DiffReporter.IsWindows)
            {
                paths.AddRange(WindowsProgramFilePaths
                               .SelectMany(p =>
                                           new[]
                {
                    $@"{p}\Beyond Compare 4\BCompare.exe",
                    $@"{p}\Beyond Compare 3\BCompare.exe"
                })
                               .ToArray());
            }
            else
            {
                paths.Add("/usr/bin/bcompare");
            }
            DefaultSearchPaths = paths;
        }