Add reference 时,添加的引用不能使用

来源:互联网 发布:python str.split 编辑:程序博客网 时间:2024/05/19 02:41

Interop type ‘XXXX’ cannot be embedded. Use the applicable interface instead.

添加.dll文件时,程序出现错误:Interop type 'XXX' cannot be embedded. Use the applicable interface instead.

解决办法是找到相对应的接口,在它的属性中将Embed Interop Type属性改为false!

why?


原创粉丝点击