LoginSignup
0
1

More than 3 years have passed since last update.

Visual Studio 2019でWindowsSDKを参照できなくなった話

Posted at

経緯

今までWindows Namespaceに含まれるClassを参照する際には、プロジェクトファイルに以下の記述をすることで参照マネージャーに追加されるWindows参照のタブを利用していた。

Project.csproj
<PropertyGroup>
    <TargetPlatformVersion>10.0</TargetPlatformVersion>
</PropertyGroup>

しかし、WindowsOSのアップデート後、WindowsSDKが見つからなくなり参照が出来なくなってしまった。
windows_sdk_notfound.png

Windows Namespaceに含まれるClassを参照する方法

  1. Microsoft API Referenceから参照したいClassのAPI Contractを探す。(ハイライト部分)
  2. Visual StudioでAPI Contractを参照に含める。

microsoft_docs.png

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1