javascript 如何为 Windows 手机创建 .XAP 扩展文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16074947/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-27 03:11:04  来源:igfitidea点击:

How to create .XAP extension file for windows phone

javascriptwindows-phone-7cordovawindows-phone-8

提问by Gaurav

I have created a new Windows 8 JavaScript project using phoneGap,

我使用 phoneGap 创建了一个新的 Windows 8 JavaScript 项目,

My question is how can i get .XAP extension file in Bin folder as this is mandatory to run my application on windows device.

我的问题是如何在 Bin 文件夹中获取 .XAP 扩展文件,因为这是在 Windows 设备上运行我的应用程序所必需的。

And also tell me one thing there is any other solution to make this .XAP extension file. Because of using javascript i am not getting .XAP extension file.

还要告诉我一件事,还有其他解决方案可以制作这个 .XAP 扩展文件。由于使用 javascript,我没有得到 .XAP 扩展文件。

回答by MSTdev

First of all you need to check that you are configured for windows 8or windows phone 8.

首先,您需要检查您是否已针对Windows 8Windows Phone 8进行配置。

If you compile it as Windows Phone Project then you can get XAP from your project. Bin>>Debug>>Your project.XAP

如果您将其编译为 Windows Phone 项目,那么您可以从您的项目中获取 XAP。Bin>>调试>>您的项目.XAP

回答by ColinE

You must either compile it, as a Windows Phone project, using Visual Studio. Or alternatively use the Adobe PhoneGap Build service, which allows you to send your code to the 'cloud' as a zip file. It will them build your app, returning IPA, APK, XAP and other native bundles.

您必须使用 Visual Studio 将其编译为 Windows Phone 项目。或者,也可以使用 Adob​​e PhoneGap Build 服务,该服务允许您将代码作为 zip 文件发送到“云”。他们将构建您的应用程序,返回 IPA、APK、XAP 和其他原生包。