ionic v1 build windows 10 or 8.1

-2

I'm trying to build a test app for windows 10 or 8.1. I already added in config.xml : <preference name="windows-target-version" value="10.0" />

Now on the console I run the following commands:

1 - ionic cordova platform add windows
2 - ionic cordova build windows

And it gives me the following error:

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build windows (exit code 1):


        You have been opted out of telemetry. To change this, run: cordova telemetry on.
        Running command: "C:\Program Files\nodejs\node.exe" C:\Users\max-desktop\Desktop\easyjob\hooks\after_prepare0_add_platform_class.js C:\Users\max-desktop\Desktop\easyjob
        add to body class: platform-windows
        MSBuild v4.0 is not supported, aborting.
        Error: AppPackages doesn't exists

I've researched a lot but I do not know what to do ...

NOTE: I am using ionic v1

  

Question update

As Otto's comment suggests, I installed on my machine windows sdk 10 , but when running the build the console still presents me with the same error:

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build windows (exit code 1):


        You have been opted out of telemetry. To change this, run: cordova telemetry on.
        Running command: "C:\Program Files\nodejs\node.exe" C:\Users\max-desktop\Desktop\easyjob\hooks\after_prepare0_add_platform_class.js C:\Users\max-desktop\Desktop\easyjob
        add to body class: platform-windows
        MSBuild v4.0 is not supported, aborting.
        Error: AppPackages doesn't exists
    
asked by anonymous 07.08.2017 / 06:21

1 answer

0

You need to install Windows 10 SDK or 8.1 to resolve the issue.

You would need to install separately from VS 2015 and add the line below to config.xml :

<preference name="windows-target-version" value="10.0" />

Also take advantage of and take a look at this link, you have a more complete answer, if you help complement it here with the complete answer.

link

    
07.08.2017 / 14:33