Ionic v1 build windows 10 or 8.1

Asked

Viewed 138 times

-2

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

Ai on the console I run the following commands:

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

And you present me with the following mistake:

[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_prepare\010_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 done enough research but I don’t know what to do...

NOTE: I am using Ionic v1

Update of the question

As Otto’s comment suggests, I installed on my machine the windows sdk 10, but when running the build the console still presents me 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_prepare\010_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

1 answer

0

  • I updated the question.

  • @Maxrogério updated with a complementary link of a look.

  • Man, I don’t know but I’m not getting it... :/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.