Browser

Microsoft Edge(Project Spartan, Internet Explorer) 、ブラウザ周辺、Web フロントエンド開発、UI、など

Microsoft Edge まとめページ

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:

  1. Open that file (it should present you with an XML Editor)
  2. Find the Element, Dependencies and its child element, TargetDeviceFamily
  3. Modify the MaxVersion Tested Attribute from “10.0.10069.0” to “10.0.10158.0”.
  4. 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 に変更されビルドができるようになります。

f:id:x67x6fx74x6f:20150702204738p:plain

 

C# の場合は  Solution Explorer の Properties で変更するとビルドができます。

スポンサーリンク