VS2008安装项目中的COM类型库注册问题 [英] COM typelib registration problem in VS2008 Setup project

查看:240
本文介绍了VS2008安装项目中的COM类型库注册问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我一直试图得到这个使用.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=11

Hope this helps.
Best regards.
Rong-Chun Zhang


这篇关于VS2008安装项目中的COM类型库注册问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆