0

I'm new to windows mobile development and testing, My requirement is to test an .xap file in emulator.

Can someone help me with windows.

  1. How to create .xap file
  2. .xap file path/location
  3. how to install in emulators.

As i know for Android we can use unsigned APK to install in emulators and for iOS we can't install .IPA on simulators. This is My XAP location folder

Visual studio Configuration enter image description here

error message while deploying in Application Deployment enter image description here

josef
  • 5,951
  • 1
  • 13
  • 24
Charan Giri
  • 1,097
  • 1
  • 9
  • 15

2 Answers2

1

When you build your project in VS you will automatically create the .xap file. You have 2 .xap files. one in Debug mode and other in Release mode.. When yyou upload you have to upload the release .xap to the market place.

The .xap files are located in [Your project folder]/Bin/Debug for debug mode xap and [Your project folder]/Bin/Release for release mode .xap.

YOu can directly install your xap file in to the emulators provided by the SDK using Visual Studio and test out your app. You have the option to select a Developer Unlocked Phone as the test device also.

You can manually install a xap file to either a developer unlocked Windows Phone or the Emulator using Windows Phone Application Deployment (For WP8.1) Application Deployment (WP8.0) software installed with the SDK

Follow this link to know how to manually install the app in your Device/Emulator

Kasun Kodagoda
  • 3,956
  • 5
  • 31
  • 54
1

First of all to develop windows phone 8 application you would be needed to have windows 8 Operating System (64 bit) with Hyper-v and SLAT Support.

Visual Studio Express 2012 for Windows Phone 8 would be needed for creating apps for windows phone 8.

Create a blank windows phone app project or go for this How to create your first app for Windows Phone 8

Build you Project and if there is no error Run it into Emulator by Pressing F5 key and keeping target as Emulator WVGA 512MB. Your App is Deployed into Emulator.

The .xap files are located in [Your project folder]/Bin/Debug for debug mode xap and [Your project folder]/Bin/Release for Release mode xap.

You can also Deploy Xap file using Application Deployment Tool Included in windows phone 8 SDK. Just Browse your xap location and Deploy it to Emulator

Community
  • 1
  • 1
Amit Bhatiya
  • 2,621
  • 1
  • 12
  • 20
  • where can i get [Your project folder]/Bin/Debug – Charan Giri Aug 07 '14 at 12:15
  • its default location is C:\Users\USERNAME\Documents\Visual Studio 2012\Projects but while creating project if you have mentioned other place so it would be there. at a time of project creation it also ask for location to save your project – Amit Bhatiya Aug 07 '14 at 12:21
  • i'm unable to see .xap file in my bin please see my question for screen shot – Charan Giri Aug 07 '14 at 12:29
  • 2
    if you got success in build then there must be a debug/Release folder and in that you would find your xap. you got that because you would have given target os as windows phone 8.1 instead of windows phone 8.0 at startup of project creation. if using vs2013 then select template as visual c#->store apps->windows phone apps and select blank app (windows phone silver light) and ok – Amit Bhatiya Aug 07 '14 at 12:32
  • i have only 8.1 , what should i do – Charan Giri Aug 07 '14 at 12:39
  • Recreate Project as mention in comment or follow above answer's step. If using vs2013 then select template as visual c#->store apps->windows phone apps and select blank app (windows phone silver light) and ok. Select target os as windows phone 8.0. – Amit Bhatiya Aug 07 '14 at 12:45
  • tnx... now i got Status: error-invalid pointer while deploying xap file using application deployment. – Charan Giri Aug 07 '14 at 12:54
  • Thank you buddy, i don't know ur name... thank alot.. issue fixed – Charan Giri Aug 07 '14 at 13:04
  • Please.... please.... please don't use `code formatting` for *emphasis*, ***okay?*** –  Aug 07 '14 at 13:05