Hi @Robottom, John , Welcome to Microsoft Q&A,
The versions of Microsoft.Office.Interop.Word and Microsoft.Office.Interop.Excel may be different.
Microsoft's official documentation site (docs.microsoft.com) provides detailed documentation about the Office interop assemblies, including how to use these libraries and some sample code, but does not specifically list the version differences.
ApiPort is a tool provided by Microsoft that can generate API compatibility reports to help you understand the changes in APIs between different versions.
Steps:
- Download and install ApiPort.
- Run the following command to generate a report:
ApiPort analyze -f "path\to\old\Microsoft.Office.Interop.Word.dll" -t ".NET Framework, Version=latest" -r ExcelInteropDiffs.txt
ApiPort analyze -f "path\to\new\Microsoft.Office.Interop.Word.dll" -t ".NET Framework, Version=latest" -r WordInteropDiffs.txt
- View the generated report file and check the changes in method signatures.
There is no fully automated method, so it is better to do a manual comparison for a single program.Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.