是否可以使用cordova-windows@5.0.0而不是当前的cordova-windows@4.4.3创建ionic2项目? [英] Is it possible to create ionic2 project with cordova-windows@5.0.0 instead of the current cordova-windows@4.4.3?

查看:92
本文介绍了是否可以使用cordova-windows@5.0.0而不是当前的cordova-windows@4.4.3创建ionic2项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要这个,因为我在向项目添加sqlite插件并为windows 10平台编译时遇到问题。根据研究,这是一个 Cordova-windows 4.4.3中的错误已被解析为版本5.0.0。

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.

更多应用命令 ionic platform add windows 添加windows平台增加的平台是4.4.3:

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
> ...

那我该如何制作版本 cordova-windows@5.0.0 用于创建 Windows平台的项目

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

推荐答案

的确,将此行添加到config.xml:

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" />

这篇关于是否可以使用cordova-windows@5.0.0而不是当前的cordova-windows@4.4.3创建ionic2项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆