How can I suppress this COM Generics warning?

I am compiling a VB.Net 2.0 application (created in VS2008) using msbuild, and now I have added a generic return type, which gives me the following:

Warning: the type of the exporter library encountered an instance of a generic type in the signature. Generic code cannot be exported to COM.

Just spending years removing all previous warnings, I really don't want to add new ones. Any idea how to get rid of it (other than using generics)?

I don’t know what details I would put into the attribute, or what number to put on the ignore list at the project level.

+4
source share
1 answer

Do you need to provide this COM library? If not, specify ComVisible (false)

+7
source

All Articles