Windows 10 SDK Preview Build 10158 で JavaScript の UWP Apps がビルドできない
下記の対処方法が書かれていますが、
開発者のフラグを立てているにもかかわらずビルドできません。
Now that you have updated the project file, find the application’s Package.appxmanifest and do the following:
- Open that file (it should present you with an XML Editor)
- Find the Element, Dependencies and its child element, TargetDeviceFamily
- Modify the MaxVersion Tested Attribute from “10.0.10069.0” to “10.0.10158.0”.
- Save and close the file.
Windows 10 SDK Preview Build 10158 Released | Building Apps for Windows
対処法
プロジェクトの中の .jsproj を外部エディタで開き PropertyGroup の以下の部分の 10.0.10069.0 を両方とも 10.0.10158.0 に変更してください。
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.10069.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10069.0</TargetPlatformMinVersion>
Visiual Studio が起動している状態ですとアラートでリロードが促されるので「Reload」を押してください。
以下の画像のようにプロジェクト名の横のかっこ内が Universal Windows に変更されビルドができるようになります。
C# の場合は Solution Explorer の Properties で変更するとビルドができます。