如何取消此COM泛型警告? [英] How do I suppress this COM Generics warning?

查看:194
本文介绍了如何取消此COM泛型警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用msbuild编译VB.Net 2.0应用程序(在VS2008中创建),现在我添加了通用返回类型,它为我提供了以下内容:

I'm compiling a VB.Net 2.0 app (created in VS2008) using msbuild, and now I've added a generic return type, it's giving me the following:

警告:类型库导出器 在遇到通用类型实例 一个签名.通用代码可能不是 导出到COM.

Warning: Type library exporter encountered a generic type instance in a signature. Generic code may not be exported to COM.

花了很长时间才删除所有以前的警告,我真的不想添加新的警告.知道如何摆脱它(除了不使用泛型)?

Having just spent ages removing all of the previous warnings, I don't really want to add a new one. Any idea how to get rid of it (aside from not using generics)?

我不知道我将在属性中添加哪些详细信息,或者在项目级的忽略列表中添加多少数字.

I don't know what details I'd put in the attribute, or what number to put in the project-level ignore list.

推荐答案

是否必须将该库公开给COM? 如果没有,请指定ComVisible(false)

Do you have to expose that library to COM ? If not, specify ComVisible(false)

这篇关于如何取消此COM泛型警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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