Cordova构建失败的Windows

时间:2018-01-04 18:57:09

标签: cordova ionic-framework windows-phone-7 ionic3

我想在Windows / Windows Mobile上测试我的应用。为此,我首先安装了Visual Studio Community 2017,然后我下载了Windows 10 SDK & Mobile Development with JavaScript。之后我添加了Windows平台,以及config.xml中的两行代码,如下所示

<preference name="windows-target-version" value="10.0" />
<preference name="windows-phone-target-version" value="10.0" />
<engine name="windows" spec="5.0.0" />

现在,当我运行ionic cordova build windows -- --arch="x64"时,我面临以下错误

Configuration : debug
Platform      : x64
Patching 10 in prebuild event...
Injected base.js reference to the /www/index.html
Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.WinJS.2.0\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
Removing /( *)(<script\s+(?:type="text\/javascript"\s+)?src="\/\/Microsoft.Phone.WinJS.2.1\/js\/base.js">\s*<\/script>)(\s*)/ from /www/index.html
Error: AppPackages doesn't exists

缺少什么?

0 个答案:

没有答案