代码改变世界

c# Interop type cannot be embedded

2013-12-09 19:06  yvonnovy  阅读(578)  评论(0)    收藏  举报

【situation】

Interop type 'ActiveHomeScriptLib.ActiveHomeClass' cannot be embedded. Use the applicable interface instead.

【solution】

  • Right click the offending assembly that you added in the solution explorer under your project References. (In my case WIA)
  • Click properties.
  • And there should be the option there for Embed Interop Assembly.
  • Set it to ‘False’