Different Interop references on two different computers doesn't work

前端 未结 3 1851
终归单人心
终归单人心 2020-12-31 10:58

When I add a reference to Microsoft.Office.Interop.Excel on my computer, Visual Studio adds this to the project file:



        
3条回答
  •  無奈伤痛
    2020-12-31 11:37

    I found the cleanest way to use it, this also allows for multiple versions of the interop, is to create a shared bin\Office Interop\11 or 12\Microsoft.Office.Interop.Excel.dll\ and refeferenced them from the project, works a treat for different version

提交回复
热议问题