How do I suppress this COM Generics warning?

心不动则不痛 提交于 2019-12-12 11:25:17

问题


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:

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.


回答1:


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



来源:https://stackoverflow.com/questions/4388433/how-do-i-suppress-this-com-generics-warning

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