I am following the following example from here to use WinRT API's in a Win32 Application.
I added references to System.Runtime
and System.Runtime.InteropServices.WindowsRunTime
but when I add the reference to Windows.winmd
I get the following error:
Error 1 Problem generating manifest. Could not load file or assembly 'C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd' or one of its dependencies. Attempt to load a program with an incorrect format.
I tried various configurations using different .NET frameworks and versions of Visual Studio. What can I try?