Can I set a COM library embed interop types property into false RRS feed

  • Question

  • Hi,

    I am using Windows Consumer Preview and Visual Studio 11 Beta. When I created a metro style application in C#, I add reference PortableDeviceApi.dll in c:\windows\system32. And I encountered a error "Interop type 'PortableDeviceApiLib.PortableDeviceClass' cannot be embedded. Use the applicable interface instead". After surfing the internet, I found that I have to change the reference embed interop types property to false. But I also found that I cannot do that in the metro project. It's unselectable(I can do the same action in normal Windows project but not metro project). So I wonder is this the limitation or I have another way to solve this error.


    Tuesday, March 27, 2012 3:01 AM


All replies

  • Hi Sean - I'm working on this. I'll update you when I know more.
    Mark Stanley - Microsoft Escalation Engineer - Forum Moderator
    Wednesday, March 28, 2012 9:41 PM
  • Thank you for working on this.

    now I use windows runtime class instead of using those COM API.

    Thank you anyway.

    Thursday, March 29, 2012 9:24 AM