How to deploy Visual Studio Cordova app to Windows 8?

不问归期 提交于 2019-12-11 12:38:28

问题


When I create a sample cordova app in Visual Studio I can target Android and it generates an APK what I can open easily in Android. How to do the same for Windows 8/8.1 ? ... what is the equivalent of the APK file for windows? (I was looking for a .exe or similar but cant find ... assume this must be simple!?)


回答1:


In Windows 8.0/8.1 .appx and .appxupload package are created after build and like apk this is also a zip file, to view the content of package, change the extension to .zip and extract the content. *.appx is equivalent to apk in Windows. Appx package after build is located at bld[Debug or Release]\platforms\Windows\AppPackages




回答2:


qtime67,

Here's a link to the Cordova documentation on how to package an app for windows 8/8.1.

Documentation https://msdn.microsoft.com/en-us/library/vstudio/dn757048.aspx

The documentation does the job, check it out.




回答3:


You can refer to the below link for a detailed explanation on how to make the Cordova Windows/Windows Phone apps ready for packaging:

https://taco.visualstudio.com/en-us/docs/tutorial-package-publish-readme/#windows-81

From Visual Studio, you basically do a Project --> Store --> Create App Packages, in the resulting Wizard, choose 'No' if you just want to create the equivalent of apk and test it on a phone/emulator and click next. Choose Version and other details and click on 'Create'. This should generate an 'appxupload' file which you can move to a phone and install and test.



来源:https://stackoverflow.com/questions/29014771/how-to-deploy-visual-studio-cordova-app-to-windows-8

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