Is it possible to create ionic2 project with cordova-windows@5.0.0 instead of the current cordova-windows@4.4.3?

只谈情不闲聊 提交于 2019-12-25 09:27:08

问题


I need this because I am trying to problem in adding sqlite plugin to the project and compile for windows 10 platform. And according to research this is a bug in Cordova-windows 4.4.3 that was resolved to version 5.0.0.

More by applying the command ionic platform add windows to add the windows platform the added platform is the 4.4.3:

> ...
> Windows project created with cordova-windows@4.4.3
> ...

So how could I make version cordova-windows@5.0.0 used to create the project for the windows platform?


回答1:


Indeed, add this line to config.xml:

<engine name="windows" spec="5.0.0" />

also you might want to specify the target version, for instance:

<preference name="windows-target-version" value="10.0" />


来源:https://stackoverflow.com/questions/41934565/is-it-possible-to-create-ionic2-project-with-cordova-windows5-0-0-instead-of-th

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!