[英]Visual Studio Empty Cordova Multi Device Hybrid App Build Failure
After downloading and installing Multi-Device Hybrid Apps for Visual Studio CPT1 , I created a TypeScript/Multi-Device Hybrid App project. 下载并安装Visual Studio CPT1的多设备混合应用程序后 ,我创建了一个TypeScript /多设备混合应用程序项目。 I was able to build the project with Android and iOS targets, but when I switch the target platform to WP8, errors arose (this is all from VS):
我能够使用Android和iOS目标来构建项目,但是当我将目标平台切换到WP8时,就会出现错误(这都是来自VS):
1. MSBuild failed to create .xap when building cordova-wp8 for debugging.
2. X:\...\bld\Debug\platforms\wp8\cordova\build.bat: Command failed with exit code 2
3. The command ""X:\...\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows Phone" --configuration "Debug" --projectDir . --projectName "x" --buildServerUrl "" --buildTarget "PhoneEmulatorWvga512"" exited with code 8.
So I then decided to try this manually and got the following error: 因此,我决定手动尝试此操作,并收到以下错误:
X:\...\AppData\Roaming\npm\node_modules\vs-mda\node_modules\q\q.js:126
throw e;
^
Error: X:\...\bld\Debug\platforms\wp8\cordova\build.bat: Command failed with exit code 2
at ChildProcess.whenDone (X:\...\AppData\Roaming\npm\node_modules\vs-mda\node_modules\cordova\src\superspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
This is all with a clean install and VS2013 Update 2. 全新安装和VS2013 Update 2即可完成所有这些工作。
I resolved the problem by clearing the registry key at: 我通过清除注册表项解决了该问题:
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment\\Platform HKEY_LOCAL_MACHINE \\ SYSTEM \\ CurrentControlSet \\ Control \\ Session Manager \\ Environment \\ Platform
Noteworthy: 值得注意的是:
I do not believe the problem was specific to Cordova VS integration, but rather a problem with my environment setup playing nicely with Cordova. 我不认为该问题特定于Cordova VS集成,而是我的环境设置与Cordova配合良好时出现的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.