在Windows Phone 10上运行Ionic 2应用程序

Cac*_*tus 5 windows-phone uwp windows-10-universal ionic2 ionic3

我开发了一个Ionic 2应用程序,我找不到在连接到我的PC的Windows Phone 10设备上运行它的方法.我该如何让它运行?

谢谢

seb*_*ras 6

你试过这个:

要为Windows Universal构建应用程序,请下载并安装Visual Studio 2015 Community Edition.在安装过程中,选择"跨平台开发工具"以及Windows Universal Apps SDK.

安装完所有内容后,您将能够使用以下命令从命令行添加Windows平台:

ionic platform add windows
Run Code Online (Sandbox Code Playgroud)

默认情况下,build命令会生成两个程序包:Windows 8.1和Windows Phone 8.1,Ionic不支持.要将Windows软件包升级到版本10,必须将以下配置设置添加到配置文件(config.xml).

<preference name="windows-target-version" value="10.0" />
Run Code Online (Sandbox Code Playgroud)