I’m a big fan of Stack Overflow and I tend to contribute regularly (am currently in the top 0.X%). In this category (stackoverflow) of posts, I will be posting my top rated questions and answers. This, btw, is allowed as explained in the meta thread here.
As you may know, I’m really into Ionic framework lately and am helping out on StackOverflow with the knowledge I gained so far with the framework. I’m currently #5 All time answerer.
I answered this question by user user_4337270:
I am using Ionic framework for my project. As per ionic build I have used the build command for windows:
ionic build windows
After the build I get the file structure as below:
The issue is I’m not able to figure out were do I get the .XAP file inside the platform/windows folder and I’m completely new on Windows build.
My answer was:
I’m just posting this as an answer, to which we came in the comments under the OP’s question:
Add the windows phone platform:
ionic platform add wp8
.Build for wp8:
ionic build wp8
.The file
CordovaAppProj_Debug_AnyCPU.xap
is the one you’re looking for.However, I would like to turn your attention to these few posts:
- http://blog.vjrantal.net/2015/01/08/experiences-with-ionic-on-windows-phone-8-1/
- http://blogs.msdn.com/b/msdn_answers/archive/2015/02/10/running-cordova-apps-on-windows-and-windows-phone-8-1-using-ionic-angularjs-and-other-frameworks.aspx
- http://appfoundry.be/blog/2014/10/16/ionic-windows-phone
which basically confirm what the official Ionic team says that the platforms wp8 and windows in general are not yet fully supported; but they hope they soon will be.
Where to get .xap file in #Windows using #ionic build? http://t.co/PtsGU7AP8d
— Nikola Brežnjak (@HitmanHR) September 8, 2015