简体   繁体   English

如何将Interop dll添加到Wix项目(点网)

[英]How to Add Interop dll to Wix project (dot net)

I am referencing a VB6 dll in my dot net project. 我在我的点网项目中引用了VB6 dll。 to do this I need to register the dll using regsvr32 tool. 为此,我需要使用regsvr32工具注册dll。

when i build my project the Interop dll is getting created in obj folder and not bin folder. 当我建立我的项目时,Interop dll是在obj文件夹而不是bin文件夹中创建的。

Do I need to add the VB6 dll to wix project and register it. 我是否需要将VB6 dll添加到wix项目并进行注册。 If yes how do I achieve it. 如果是,我如何实现它。 I tried adding it to wix project but as its not created in bin folder i am getting error. 我尝试将其添加到wix项目中,但由于未在bin文件夹中创建该项目,因此出现错误。

Could anyone please help me on this. 谁能帮我这个忙。

Thanks 谢谢

You install the vb6 Dll the same as any other file, with the addition that the Heat tool is used to harvest the registration entries from it. vb6 Dll的安装方式与其他任何文件相同,不同之处在于,使用加热工具从中获取注册条目。 You don't need regsvr32. 您不需要regsvr32。

If you want your interop dll in a specific location at build time, I suggest you explicitly use the tlbimp.exe tool to create the interop dll in the required build location so the WiX build can find it. 如果要在构建时将互操作dll放置在特定位置,建议您明确使用tlbimp.exe工具在所需的构建位置创建互操作dll,以便WiX生成可以找到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM