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