To use the WinRT APIs, add two references:
-
C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd
-
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
Note: #2 Depends on the framework version you are using!