MSBuild failed to create .xap when building cordova-wp8 for debugging

前端 未结 4 1639
忘掉有多难
忘掉有多难 2021-01-25 02:50

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 u         


        
4条回答
  •  被撕碎了的回忆
    2021-01-25 03:20

    From my limited experience there appears to be a limitation with the cordova wp8 CLI build. If I include any plugins with native components (e.g. SQLite) the build must be targeted at ARM for a device/x86 for the emulator. The cordova wp8 tools are unaware of this and assume it's all working with AnyCPU. Consequently when platforms/wp8/cordova/lib/build.js checks that a .xap file was produced by the build in "BIN\Debug" it fails to find the xap created in "Bin\ARM\Debug" (or Bin\x86\Debug if building for an emulator).

    The application is built by the CLI, and can also be built/launched/debugged from Visual studio - but that's a pity when the other platforms can be managed from the CLI.

提交回复
热议问题