Cannot embed the interoperability type "*****.Class". Please use the applicable interface instead

In .net development, sometimes when referencing certain classes, it will prompt that the interoperability type "*****.Class" cannot be embedded. Please use the applicable interface instead. Find the application class, click View --> Solution Explorer, find the "Embedded Interoperability Type" option, and change true to false, as shown in the figure below. 

Guess you like

Origin blog.csdn.net/oYuHuaChen/article/details/103803159