Trying to add BouncyCastle c# dll to my WP8 native app.
- I create a Windows Runtime Component for Windows Phone 8
- I warp an existing C# dll in the component and create MyBouncyCastleComponent.winmd
- I open my WP8 native project and I add the winmd as a reference
Result: At compile time "warning: No implementation file was provided for the .winmd file"
At runtime it crashes and when I stop the emulator I got "WinRT information: Class not registered" (its much longer than that, complaining about missing PDB file's in window files like Windows.winmd and System.Windows.RuntimeHost.ni.dll)
I opened the winmd with ILDASM. The implementations of decrypt and encrypt are there? What am I doing wrong?

I know its been asked No implementation file was provicded for the .winmd file but there is no answer yet. I'm trying again... (couldn't figure out how to add it as a question there)
EDIT:
Just a clarification. when I say: "I warp an existing C# dll in the component and create MyBouncyCastleComponent.winmd"
what I did was take BouncyCastle source code put it in the runtime component with a wrapper class to expose the BouncyCastle methods I needed.
<clrClass>element. And the package needs to include the assembly. Whether the CLR on a phone even supports this is a bit of a long shot. - Hans Passant