Making vsto add-in installable

雨燕双飞 提交于 2019-12-10 22:08:35

问题


I´ve created several VSTO add-ins for Outlook/Word/Excel/PowerPoint. When i build them & then start the accociated program, the add-ins are installed and work wonderful.

When I try to install the DLL manually, in "Options > Add-Ins > COM-Add-Ins:Go to... > Add..." and then select the DLL, the program tells me, that it is not a valid Add-In.

What is the problem here? Visual Studio 2010 can install them automatically. Can someone help me?

Thanks!


回答1:


A .net VSTO addin DLL is not a normal COM dll (for instance, it doesn't self register, it has no TLB embedded within it) so Word can't deal with it through that addin's dialog as far as I know. VSTO addin's have to be installed via an installer.




回答2:


The simplest way to make an installer for your add-ins is to use the "Publish" functionality. Right click your Add-in project and select publish. This will show a wizard with basic options. This will generate an EXE file and a series of other files that are needed to install in other machines.



来源:https://stackoverflow.com/questions/5472493/making-vsto-add-in-installable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!