It’s really a pain to keep renaming winmd files based on the build configuration (x86,x64, ARM). Is there an easy way to roll the three configs into one winmd file? or if not, what’s the best way to configure the build to detect which version of the winmd file to use?
Share
If I understand you correctly, you’re looking for a way to reference your native winmd files so that for each target platform of your Windows Store app project the correct version of the winmd file (x86, x64 or ARM) will be used.
The best way to achieve that (and the only way I know of) is to create an extension SDK which you can install in Visual Studio as an extension and will then appear appear in the
Add Referencedialog under theWindows > Extensionscategory. Examples of such SDKs are SQLite for Windows Runtime and Bing Maps SDK for Windows Store apps.There’s a walkthrough available on how to create such an SDK in both C++ and C# or Visual Basic.