VS2008安装项目中的COM类型库注册问题 [英] COM typelib registration problem in VS2008 Setup project
问题描述
我一直试图得到这个使用.Net / COM程序集和生成的类型库来处理VS2008。 我无法将类型库正确地包含在安装项目中。 这是我得到的错误/警告: 警告:无法为名为"XmlGateway.tlb"的文件创建注册信息 因此,生成的安装包不会注册类型库。
< p align = left>我已经按照MSDN上的说明进行了操作,也来自Phil Wilson撰写的"构建和部署.Net COM程序集"文档。
有解决方案吗?
问候,
Rine le Comte
To-Increase
Hi Rine,
发生此警告时指定的文件将Register属性设置为 vsdrfCOM 或 vsdrfCOMRelativePath ,但是文件不包含COM注册信息或不是COM组件。您可以将Register属性设置为 vsdrpDoNotRegister 以查看是否仍然出现此警告。
有关详细信息,请查看以下链接:
http://msdn.microsoft.com/en-us/library/h793hc1y.aspx?s=11
希望这会有所帮助。
最好的问候。
张荣春
Hi, I have been trying to get this to work on VS2008 with a .Net/COM assembly and a generated typelibrary. I cannot get the type library properly included into the setup project. This is the error/warning I get: WARNING: Unable to create registration information for file named 'XmlGateway.tlb' The resulting installation package does therefore NOT register the type library. I have followed instructions on MSDN, and also from the document 'Build and Deploy a .Net COM assembly' by Phil Wilson. Anyone with a solution for this? Regards, Rine le Comte To-Increase
Hi Rine,
This warning occurs the specified file has the Register property set to vsdrfCOM or vsdrfCOMRelativePath, but the file does not contain COM registration information or is not a COM component. You can set the Register property to vsdrpDoNotRegister to see if this warning still happens.
For more information, please check the following link:
http://msdn.microsoft.com/en-us/library/h793hc1y.aspx?s=11Hope this helps.
Best regards.
Rong-Chun Zhang
这篇关于VS2008安装项目中的COM类型库注册问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!