Hyndrix
Hyndrix

Reputation: 4452

Sharing Windows Phone Runtime Component

I have implemented functionality as a Windows Phone Runtime Component (C++) project. At the moment this project is part of a Windows Phone 8 Visual Studio solution.

Is it possible to export/convert a Windows Phone Runtime Component into a library which can be easily referenced by other Windows Phone 8 projects, and how? I mean something like the library+header concept from C/C++.

Or is the only solution to create a C++ library which is then referenced by Windows Runtime Components created for each solution individually?

Regards,

Upvotes: 2

Views: 373

Answers (1)

Tor Helmer
Tor Helmer

Reputation: 36

If you are compiling the project as a WPRTC(C++) then it should output as a {project_name}.winmd

You can use the .winmd file as a dll reference (that's effectively what it is... only with metadata attached).

This should be usable in exactly the same way as the project (although you will get the object browser for header information instead of actual source code).

Upvotes: 2

Related Questions