c# excel dll - can't add a reference to the specified file - regasm

后端 未结 2 1386
北荒
北荒 2021-01-15 23:31

When deploying and registering a .Net Excel.dll on another computer, I get an error Can\'t add a reference to the specified file when

2条回答
  •  萌比男神i
    2021-01-16 00:06

    You need to register the type library for excel to see your dll in References.

    i.e. regasm.exe excelDll.dll /tlb:excelDll.tlb

    Mark.

提交回复
热议问题