ForNeVeR / ForNeVeR/ExtDiff

Document comparison is opposite from expected order

Aperta
#9 0 commenti 0 reazioni 1 assegnatario Rivendicata da @ForNeVeR Vedi su GitHub
bug
Lingua principale
PowerShell
Stelle
139
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.