1

Is this possible?

My app references Excel 2007 Primary Interop Assemblies. Can I install these on a PC which has only Excel 2002 (XP) installed?

Or do I need the Office XP PIAs?

In that case, do I need to modify my program to reference the old PIAs?

4

1 回答 1

1

刚刚进行了快速搜索,此链接可能会有所帮助:Achieving Backward Compatibility with .NET Interop: Excel as Case Study

简短的回答似乎Interops是不向前兼容,即它们不会在部署环境中使用低于最初目标的版本化程序集。为了以较低版本为目标,您应该明确引用较低版本的程序集。

于 2011-03-10T10:27:14.253 回答