sillsdev / chorus

End-user collaboration library via 3-way xml merging and hg dvcs under the hood
6 stars 26 forks source link

HgRunner/MercurialLocations point to wrong executable on Windows #340

Closed myieye closed 3 months ago

myieye commented 3 months ago

Using HgRunner.Run() on Windows I get:

[test:integration]    System.ComponentModel.Win32Exception : An error occurred trying to start process 'D:\code\languageforge-lexbox\backend\Testing\bin\Debug\net8.0\Mercurial\hg' with working directory 'D:\code\languageforge-lexbox\backend\Testing\bin\Debug\net8.0'. The specified executable is not a valid application for this OS platform.
[test:integration]   Stack Trace:
[test:integration]      at Chorus.VcsDrivers.Mercurial.HgRunner.Run(String commandLine, String fromDirectory, Int32 secondsBeforeTimeOut, IProgress progress) in D:\code\chorus\src\LibChorus\VcsDrivers\Mercurial\HgRunner.cs:line 95

Because it always explicitly points to hg instead of hg.exe