我在cordova 3.5命令行界面的幫助下構建移動應用程序。我在我的應用程序中安裝了windows8,wp8,android和firfox-os。 我能夠構建android和firefox-os。但是當我試圖構建windows8或wp8時,錯誤顯示爲:在命令行(科爾多瓦-3.5)中構建Cordova-WP8項目時出錯
C:\Users\igs\hello>cordova build wp8
Running command: C:\Users\igs\hello\platforms\wp8\cordova\build.bat
WARNING: [ --debug | --release ] not specified, defaulting to debug...
Cleaning cordova project...
Building Cordova-WP8 Project:
Configuration : Debug
Directory : C:\Users\igs\hello\platforms\wp8
toolsVersion 0 is not supported
MSBuildToolsPath: C:\Windows\Microsoft.NET\Framework\v4.0.30319\
buildCommand = %comspec% /c ""C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbu
ild" "C:\Users\igs\hello\platforms\wp8\HelloWorld.sln" /clp:NoSummary;NoIt
emAndPropertyList;Verbosity=minimal /nologo /p:Configuration=Debug"
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
C:\Users\igs\hello\platforms\wp8\HelloWorld.csproj(192,5): error MSB4019:
The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsPhone\v8.0
\Microsoft.WindowsPhone.v8.0.Overrides.targets" was not found. Confirm that the
path in the <Import> declaration is correct, and that the file exists on disk.
Error: C:\Users\igs\hello\platforms\wp8\cordova\build.bat: Command failed
with exit code 2
at ChildProcess.whenDone (C:\Users\igs\AppData\Roaming\npm\node_module
s\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
是否需要安裝任何東西?請幫幫我。 在此先感謝。
只要有完全相同的問題... – teone 2014-09-03 12:28:11
我有同樣的問題yesteday ... 我是在第一次嘗試咕嚕身材,我所做的就是刪除WP8平臺,然後 **科爾多瓦平臺添加窗口, cordova build windows ** 然後我能夠成功構建 – 2014-10-28 01:30:26