locked
How to create a "portable library"

    General discussion

  • I have a WinRT C++ component that I have wrote and compiled for Desktop app (x86/x64) and ARM/Phone app. (in 2 different project, but used the same source file).

    Now I'd like to create a portable library  (i.e. a library that can be linked by other portable library in C#) that target desktop and phone project.

    Is that possible?

    Tuesday, January 22, 2013 9:51 AM

All replies

  • Hi Lloyd,

    You will need to use separate projects for the different targets. They cannot share the same binary. In many cases you can link the source files to use the same source in different projects.

    For pure .Net libraries you can use a .Net Portable Class Library (PCL), but that covers only the .Net classes. PCLs cannot call native code, including Windows Runtime classes.

    --Rob

    Tuesday, January 22, 2013 7:17 PM
    Owner
  • ho .. it's sad.. (but foreseeable..)

    Tuesday, January 22, 2013 11:17 PM