来自http://stackoverflow.com/questions/13016645/how-to-access-the-windows-management-deployment-namespace
You can use WinRT APIs from desktop applications.
Just add
<PropertyGroup>
<TargetPlatformVersion>8.0</TargetPlatformVersion>
</PropertyGroup>
to the .csproj.
1. add Windows.winmd: C:\Program Files (x86)\Windows Kits\8.0\References\CommonCOnfiguration\Netural\Windows.winmd
2. add System.Runtime.WindowsRuntime.dll,可以在
C:\Windows\Microsoft.NET\Framework\v4.0.30319
本文介绍如何通过在.csproj中添加特定属性组来使用WinRTAPIs,实现从桌面应用到跨平台应用的转变。具体步骤包括添加WinMD文件和依赖库,以充分利用Windows Runtime API在不同平台上的兼容性和效率。

1万+

被折叠的 条评论
为什么被折叠?



