ForNeVeR / ForNeVeR/ExtDiff

Document comparison is opposite from expected order

オープン
#9 コメント 0 件 リアクション 0 件 担当者 1 名 @ForNeVeR が担当を希望しています GitHub で見る
bug
主要言語
PowerShell
スター
139
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

説明

Per the readme, the expected PowerShell call syntax is as follows:
`powershell -File Diff-Word.ps1 oldfile.docx newfile.docx`
However, the result is the opposite: Word treats `newfile` as the original and `oldfile` as the updated. This is because the Word command `Document.Compare` expects the syntax `NewDocument.Compare(OldDocument, ...)` but the PowerShell script uses `OldDocument.Compare(NewDocument, ...)` which explains the inverted result in Word. Unfortunately the correct syntax is very unclear in the [Microsoft documentation](https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.tools.word.document.compare) so the confusion is quite understandable. However, the PowerShell script should align with the correct use of the Word command.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。