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

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?


發佈了3 篇原創文章 · 獲贊 10 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章