I'm building a cordova application and trying to run "cordova build wp8" in the cmd prompt, but this seems to be erroring out:
Your environment has been set up for using Node.js 0.10.25 (x64) and npm.
C:\path\to\project>cordova build wp8
Generating config.xml from defaults for platform "wp8"
Preparing wp8 project
Compiling app on platform "wp8" via command "cmd" /c C:\path\to\project\platforms\wp8\cordova\build
Error: An error occurred while building the wp8 project.ERROR: MSBuild failed to
create .xap when building cordova-wp8 for debugging.
at ChildProcess.<anonymous> (C:\Users\Mark\AppData\Roaming\npm\node_modules\
cordova\src\compile.js:65:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Cordova docs instruct you to add this to the wp8 platform files:
<Capabilities>
<Capability Name="ID_CAP_ISV_CAMERA" />
<Capability Name="ID_HW_FRONTCAMERA" />
</Capabilities>
The second line breaks the build. Removing:
<Capability Name="ID_HW_FRONTCAMERA" />
fixed this issue.