Google WindowsPhone 8.1 App Deployment :How to deploy .appx file with Application Development Tool | SubramanyamRaju Xamarin & Windows App Dev Tutorials

Tuesday, 22 April 2014

WindowsPhone 8.1 App Deployment :How to deploy .appx file with Application Development Tool

Introduction:

In prev post i was explained about creating new project on windows phone 8.1 sdk.During development you typically deploy and run your app from Visual Studio. Optionally, you can also use the stand-alone Application Deployment tool to deploy your app to the emulator or to a registered device.Often when you write a Windows Phone  application you do not want to give users the full source code. In such cases it is possible to share only the build file and deploy it to a device or emulator. You can accomplish this using the Windows Phone Application Deployment tool that comes with the RTM version of Windows Phone Developer Tools.

However like windows phone 8.0 apps for windows phone store 8.1 apps there is no .xap file is created  after running the app.Windows phone store 8.1 apps are deployed through windows store. So that in this post i am going to explain about steps to deploy windows phone 8.1 .appx file.

Note:This post assumes you’re using Microsoft Visual Studio Express 2013 for Windows.

1)What is  "AppPackages" and how to generate it?

In order to deploy an app, you need an App Package. Visual Studio has functionality to create an App Package you can use to deploy your app to another device.The following step are how to create a local App Package.

Step1: Right click on your Project=>Store=>Create App Packages

Step2: In the Create App Packages wizard, you will want to create a local package. Therefore, answer “No” to the “Do you want to build a package to upload to the Windows Phone Store”. Notice the information text indicates this is the option for sideloading. 


Step3: The next dialog provides a choice of processor platforms to target. In most cases, you would want to choose “Any CPU”. This will allow you to target all of the processor platforms and architectures. However, if you are using platform specific binaries in your app, you’ll need to build separate packages for each platform. 

Step4:In my example, I’ll just leave the default “Any CPU” and click “Create” 


Note: the wizard gives us a link to where the package was created.

If we click the link, here is an example of what was created:


2)Deploying an app with the Application Deployment tool:

  1. Build and package your app.
  2. If you’re deploying your app to a device, make sure that the device is registered and connected.
  3. On your computer’s Start screen, find the Application Deployment tool.
    You can also run the tool from the following location:
    C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Tools\AppDeploy\AppDeploy.exe
  4. Run the tool.
    The tool starts, as shown in the following screenshot.
    App Deployment Tool for Windows Phone apps
  5. In the Target drop-down list box, select either Device or one of the emulator options.
  6. In the App field, click Browse and locate the package file that you want deploy.















  
 8.Click Deploy.

If the deployment is successful, the Status field displays App Deployment Complete.

Finally your app icon will be display in your device/emulator as


Please read more at MSDN

Note: Please share your thoughts,what you think about this post,Is this post really helpful for you?I always welcome if you drop comments on this post and it would be impressive.

Follow me always at  

Have a nice day by  :)

6 comments:

  1. Thank you very much Subramanyam Raju, for sharing this content. But When i try to generate the app Package for Universal build I got an
    Error :" App manifest references the image 'Assets\SplashScreen.png' which does not have a candidate in main app package."
    if you know about this error Please provide the solution...

    Thank you very much.....

    ReplyDelete
    Replies
    1. You may remove SplashScreen.png after upgrading solution but "Package.appxmanifest" still contains the reference. So Re-added SplashScreen.png and everything will be fine.

      Delete
    2. App manifest references the image 'Assets\smartflow_logo_71x71.png' which does not have a candidate in main app package.

      App manifest references the image 'Assets\smartflow_logo_480x800.png' which does not have a candidate in main app package.

      App manifest references the image 'Assets\smartflow_logo_310x150.png' which does not have a candidate in main app package.

      App manifest references the image 'Assets\smartflow_logo_150x150.png' which does not have a candidate in main app package.

      Sir, I re-added all of them. But still I'm facing the same problem while creating app packages for windows phone 8.1 app.
      Please help sir.

      Delete
  2. nice article, find some useful calendars such as March 2017 Printable Calendar & April 2017 Calendarto manage your time and work activities.

    ReplyDelete
  3. really nice article !!! I had learned so many things reading this article, thanks a lot for sharing the information. Our site also provides an innovative and interactive Mobile App Services and if you want more ideas to refer our site: www.hvantagetechnologies.com

    ReplyDelete

Search Engine Submission - AddMe