以前に、センサーのデータを SignalR でホストする (1) という記事で、 Windows 8.0 の環境でデスクトップ アプリから WinRT API を呼び出す方法について書きましたが、 Windows 8.1 の環境でも同様に設定します。 (追記: Windows 10 向けにデスクトップ アプリから WinRT API を呼び出す (Windows 10) を書きました。) まず、.csproj ファイルを手動で編集して、<TargetPlatformVersion> を追加します。 <TargetPlatformVersion>8.1</TargetPlatformVersion> 次に、WinRT API への参照です。 <Reference Include="Windows" /> <Reference Include="System.Runtime.WindowsRu
![デスクトップ アプリから WinRT API を呼び出す (Windows 8.1)](https://cdn-ak-scissors.b.st-hatena.com/image/square/6ca2b470ecae8b66e5f7548165f3b56f15bff917/height=288;version=1;width=512/https%3A%2F%2Fsakapon.files.wordpress.com%2F2014%2F10%2Fimage_thumb.png)