I have a Windows Store app project. In this project, I want to reference a Windows Runtime component written in C++. This component is available as a DLL + WinMD combination. However I am unable to figure out how to do this. I have tried adding a file reference from the app VS project to the DLL and WinMD files but I get an error saying the DLL could not be added. I then tried adding it as binary to output directory and still no luck.
I don't have the sources of this WinRT component. I know if I have the VS project for the WinRT component then I can simply add a reference from my app project to the WinRT component project and it all just works. But in case of loose WinMD/DLL files it doesn't work.
How can I do this?