in android, we right click to our project, click export and get the apk.
For windows phone 8 , in visual studio 2012, how can i export my application into my desktop or somewhere ?
Anyone can help about it ?
Thanks !
For Windows Phone you get a XAP file instead of an APK file.
The XAP in the ARM Release ie- ..\<Project Folder>\Bin\ARM\Release\ should be submitted to the Windows Store or Deployed to Device. Windows Phone Devices uses ARM based processors.
To generate the output-
First Select Release from the Solution Configuration DropBox.
Then go to configuration manager and change the AnyCPU field to ARM.
Then Build the project.
To Run on Device-
Open Application Deployment(a program that is installed with the
Windows Phone SDK)
Select Target Device(Phone should be connected by USB and Unlocked.
For WP 7 you need Zune.)
Browse and Select the XAP file in the \Bin\ARM\Release\
Click Deploy Button
To Run on Emulator- (use AnyCPU Build Configuration)
Open Application Deployment(a program that is installed with the
Windows Phone SDK)
Select Target emulator.
Browse and Select the XAP file in the \Bin\x86\Release\
Click Deploy Button
Each time when you build you project - Visual Studio builds XAP file, which is actual package for uploading it to Windows Phone Store or deploying to the real device.
This may help Submit your app
After building your application with VS, If you want to deploy your app, simply go to your Windows SDK folder for instance C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0
and open XapDeploy.exe under *Tools\XAP Deployment*
search for your *.xap file which is in your bin project's folder (for instance C:\Users\user\Documents\Visual Studio 2012\Projects\HTML5App1\Bin\Debug)
Related
I have a xamarin project and i want to debug it, but visual studio doesn't show any emulator or physical device.
this is the menu
I wanted to restart adb from tools > android but it's disabled. but when I open a non xamarin project (for example a web porject) this options is enabled.
I can see my device in cmd with command adb devices and in android studio, every thing is fine and I can deploy some java application to my phone.
do you have Any idea?
Update
I created new project and in this new project, every thing is fine and I can debug with my phone or emulators.
but in my existing project which I'm currently working on, there is no device in list.
It happened to me just now using vs 2019, to fix this, manually remove obj and bin folders restart vs, and that's all :)
I am currently making a cross platform mobile application . Where in I am targeting Android, IOS as well as the Windows OS.I have just made a hello world form and debugged it for android. Runs perfect on the emulator. Now want to send the .apk file to my coworker to see on her Android Mobile. How do i generate the .apk file???
Right click on solution with Android app and click on Archive more HERE
You have to run your application in release mode. The generated apk is located in the bin\release folder of the android project
I was searching in the internet but I don't found anything. How can I create release appx file in visual studio using xamarin?
Thanks!
Right button on Windows or Windows phone project -> Store -> Create App Packages
I am unable to deploy an application via Visual Studio 2015 Update 2 to my Lumia 650. In the past it was possible but now I get the following error indicating to change the build configuration of a project or add an ARM device.
The build config is set to 'ARM', the device is connected via USB and my configuration manager looks like this.
The platform targets seem correct, so the config setting 'ARM' points to the platform target 'ARM'. I can run the app on my local computer, but I cannot deploy it to my phone. I also can't run the app in an emulator because if I choose the setting, VS does not change the caption and accept it. I don't have any more ideas.
If it helps I could provide my .sln file with all build configurations if desired. The only thing I did was checking out my source code to a new location on my hard drive. Since then I couldn't deploy anymore. Someone got any hints?
UPDATE:
I cannot deploy to my phone, run the app in an emulator or run the app in the simulator. The only thing that works is running on the local machine. Even all new apps I create cannot be deployed or run in an emulator or simulator. Visual Studio and SDK repair installation was made, no notable change.
If I load an old Windows Phone 8.1 RT or Silverlight project everything works normally, I can use the emulator and I can deploy it to the phone.
Right click your app in VS -> Properties -> Debugging
There is a combo box to select the target device. In my case there was no selection and I chose 'Device'. Now it works again.
https://dotblogs.com.tw/billchung/2016/04/03/051455
I have developed one windows phone 8 application. I have tested the app in simulator and it is working fine. Now I have decided to test the app in my windows phone(Nokia Lumia 520).
As you already know for testing the app, we need XAP file. So I have build the app in visual studio 2012 by right click on the project and select build option.Then XAP file is generated in the BIN folder of the application.
Now I have copied the XAP file to the SD Card 's root folder on my windows phone. After that I have restarted my windows phone.
Now I click on the Start and then Store in my phone. Now it has to show SD Card option.
But I didn't get this option.
So to check this again, I have downloaded the application(XAP file) from windows store.Now I have copied the XAP file to the SD Card 's root folder on my windows phone. After that I have restarted my windows phone. Now I click on the Start and then Store in my phone.
Now the SD Card option is visible. But there is only one XAP file (which I downloaded from the store) is visible and the one which I have developed is not visible.
I don't know what is the problem in my XAP file.
Please provide the solution as early as possible.
Thanks.
You need to follow the proper procedures for deploying a windows phone 8 app to a device. Connect your phone to your PC, In Visual studio 2012, select the deploy to device option and build the project. If you have a developer unlocked device, this will install the app on your phone.
Deploying an app in visual studio
Deploying an app using the application deployment tool
You cannot deploy a XAP file from your SD card on your phone but there are several other ways to do that:
If you have a developer unlocked phone (that you should have as developer) you can connect the phone to your PC and directly deploy the XAP file to it via Visual Studio (select Device instead of Emulator as deploy target)
Otherwise you can use the "Application Deployment" tool that comes with the Windows Phone SDK
Third you can upload it as a Beta Version to the Windows Phone Store which his is very uncommon way because if you have Windows Phone Store Account you can also unlock your phone...