Windows Desktop 调用 WinRT api

<Reference Include="Windows">
<HintPath>............Program Files (x86)Windows Kits8.0ReferencesCommonConfigurationNeutralWindows.winmd</HintPath>
</Reference>

HintPath 换成绝对路径就好 如果是相对路径 文件移动地方引用就失效了...

还有一篇文章中提到过另一个方法 

 http://www.cnblogs.com/ideashooter/p/3237924.html

http://www.hanselman.com/blog/HowToCallWinRTAPIsInWindows8FromCDesktopApplicationsWinRTDiagram.aspx

原文地址:https://www.cnblogs.com/makubexsoft/p/3643905.html