I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.
How can i install this Appx to my device? Anyone having any idea?
Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.
Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.
Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see:
https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.
You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.
When you use device portal like mentioned in the answers above, some might get the following error
"Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"
To fix this:
Add the dependencies found under "Dependencies/ARM" folder.Add it here.
I had to add following dependencies to make it work:
Microsoft.NET.CoreRuntime.1.0.appx
Microsoft.VCLibs.ARM.Debug.14.00.appx
Related
Recently I have a question. If I write an UWP app and install into a Raspberry Pi with Windows IoT Core OS, is it possible that I set a automatic OTA update for my app inside the Raspberry Pi, just like normal UWP apps in Windows App Store do?
EDIT: Just for my apps, not for upgrading Windows OS (since it can be upgraded directly by Windows Update)
Great question.
I'd suggest looking at a higher level device management solution that can provide updates of any type to a device via an IoT event hub. This is still in preview but check out this Microsoft post on getting started with something like this:
https://azure.microsoft.com/en-gb/documentation/articles/iot-hub-device-management-get-started/
Since Windows IoT Core does not contain the Windows Store, it is impossible to enable automatic app updates like on your Windows 10 PC with the built-in tools. As far as I know you can only manually upload an app from your Pi's web interface, Visual Studio or maybe CMD/PowerShell/putty.
It seems that I can use ProcessLauncher function in UWP app and start a new exe binary (of course it has to be compiled for ARM platform) to do the job. See here: Windows Developer - ProcessLauncher.
But anyway, my RPi3 is still on the way right now, I can't prove if my app can really can let another exe binary (or PowerShell script) to upgrade itself. Hope it can~!
I have problem with Visual Studio 2012 (OS: Windows 8.1 Preview)
Create empty project (Windows Phone App)
Press F5 to start debugging.
And I get 0x80131500 error code, with no detailed description. Only this: Deployment of application to device failed.
Output:
1>------ Deploy started: Project: PhoneApp1, Configuration: Debug Any CPU ------
1>Deploying C:\Visual Studio 2012\Projects\PhoneApp1\PhoneApp1\Bin\Debu\PhoneApp2.xap...
1>Connecting to Emulator WVGA 512MB...
1>Deployment of application to device failed.
1>0x80131500
Has anyone encountered such a problem. How it can be solved?
Installing Visual Studio 2012 Update 3 should fix the issue http://support.microsoft.com/kb/2864215
Windows 8.1 Preview does not support the Windows Phone 8 sdk to run on the Visual Studio 2012. You cannot run Emulator as well so better you should use a stable Windows 8 version for WP8 development. This is the statement right from Microsoft Support
After you upgrade your OS to Windows 8.1 Preview, you cannot run Windows Phone 8 Software Development Kit (SDK) emulator (XDE.exe) in Microsoft Visual Studio 2012
Reference here
In my case, updating Windows Phone SDK and VS Express 2012 helped on Windows 8.1, but performance is poor.
If it's helpful try installing update to VS:
http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/07/02/running-the-windows-phone-emulator-on-windows-8-1-preview.aspx
And updating SDK:
http://dev.windowsphone.com/en-us/downloadsdk
For some one who is looking for an answer who has the same issue while working on a virtual environment, here is a nice article on it
Setup: Visual Studio 2013 + Windows 8.1 (no betas) + this did work
Resolution: Restart the Hyper-V service
I'm also receving this error while simulating the program. i hav win 8 only and vs12 windows phone...
but when i serach info. regarding this error i get i have not hyper-v windows feature. try this feature you have or not and enable it..
Hyper-v Link : http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj863509(v=vs.105).aspx
I found this is the key thing to check, as per (WP8) Emulator (XDE) Troubleshooting Tips on msdn:
Launch the “Network Connections” manager (from the home screen, type in “View Network Connections”, It will be listed under Settings)
Right click on the adapter named: “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)”
For that adapter, the only items that should be checked under “This connection uses the following items:” should be:
Client for Microsoft Networks
QoS Packet Scheduler
File and Printer Sharing for Microsoft Networks
Microsoft LLDP Protocol Driver
Link-Layer Topology Discovery Mapper I/O Driver
Link-Layer Topology Discovery Responder
Internet Protocol Version 6 (TCP/IPv6)
Internet Protocol Version 4 (TCP/IPv4)
All other items should be unchecked.
I installed Windows Phone 8 SDK. Emulator didn't work because Hyper-V was not turned on. I installed Hyper-V from Programs & Features and got the 0x80131500 error.
Visual Studio 2012 Update 4 fixed the issue.
I faced the same issue. Later i was able to fix the issue by downloading and installing
Visual Studio 2012 Update 4 from microsoft website.
Try out these steps if using VS 2012 with Windows 8.1 Pro:
Uninstall Hyper-V
Reboot
Install Hyper-V
Reboot
This should help.
service Remote server of you is disable. You could enable remote server! And don't can reinstall Hyper-V. it's working for me!
I solved with following repair sequence :
Uninstall Hyper-V
Reboot
dism.exe /Online /Cleanup-image /Scanhealth
dism.exe /Online /Cleanup-image /Restorehealth
Reboot
Install Hyper-V
RG
I'm able to run c# programs in Ubuntu using the mono project.
But I'd like to know whether it's it possible to create a Windows 7 phone app in Ubuntu.
If so, what packages do I need to install?
At the moment, no.
I tried to run Visual Studio 2010 Express for Windows Phone ( http://www.microsoft.com/visualstudio/en-us/products/2010-editions/windows-phone-developer-tools ) via Wine before but it failed to work properly without giving me problems. On top of that, you will still need Zune to allow deployment of app.
I have this explorer-like program in C#. I've done it finally. Now I have to be able to install this project on a phone "Windows Phone with 6.0 Framework". Can anyone answer these following questions:
1) How to publish my project to make it an installer?
2) How to run or install my project on a phone (Windows Phone with 6.0 Framework)?
Additional question:
1) What software should I use to be able to navigate my project on a phone and preview the navigation on my desktop pc? Just like remote viewing on my desktop pc from my phone?
Project information:
1) Target device -- USA Windows Mobile 5.0 Pocket PC R2 Emulator.
2) Target Platform -- Windows Mobile 5.0 Pocket PC SDK
3) C# language, .Net 3.5, Visual Studio 2008
Any help would be so much appreciated. Thanks in advance.
Here's Microsoft's documentation on it:
Deploying Windows Mobile Applications
http://msdn.microsoft.com/en-us/library/bb158580.aspx
I know we are supposed to hyper link stuff, but Microsoft changes their links like I change shoes, so it is good to have the full text to search on... just in case!
Basically, you want to add another project to your solution, and this one will be your Setup project. There is a nice blog on it in How to create a windows mobile (Smart Device).Cab installer, if you can follow those steps.
Is there a ways to rebuild a c# .net CF application and deploy it in windows mobile emulator from the command-line?
This is required to create a bat file for automation.
I have taken a look at http://msdn.microsoft.com/en-us/library/aa188169(VS.90).aspx which mentions how to use the emulator from command line, but doesn't mention how to deploy an application in it.
Thanks,
Vicky
I just tried calling devenv with the /deploy switch to tell it to deploy to the target and it worked just fine:
devenv /deploy Release "MySolutionName.sln"
There are two steps involved:
Start the emulator using the Device Emulator Manager (DEM) API
Execute the target app remotely using RAPI or RAPI2
1. Start the emulator using the Device Emulator Manager API
To programmatically start your emulator you'll need to utilize the Device Emulator Manager (DEM) COM API. To do so from .NET, you'll want to use the Microsoft.DeviceEmulatorManager.Interop.9.0.dll Primary Interop Assembly, which should be found here (assuming your OS is 64 bit): C:\Program Files (x86)\Microsoft Device Emulator\1.0
While you can use the provided PIA directly, it's much easier to access the DEM API from a custom façade; fortunately, a nice wrapper has already been written and is available from MSDN, along with some great info regarding the API:
How To: Programmatically Control the Windows Mobile Device Emulators from .NET - MSDN
Note: You must "dock" the emulated device before you can use the Remote API - don't forget this step!
DEM documentation:
Device Emulator Configuration Files - MSDN
Device Emulator Manager - MSDN
2. Execute the target app remotely using RAPI or RAPI2
Once you've guaranteed that your emulator is both running and "docked", you can proceed to interact with it via the Remote API (RAPI), allowing you to upload your compiled executable to the device and execute it remotely. Here are a few examples of RAPI use:
Communicating with a Device from the Desktop (C#)
The RAPI Demo Example (C++)
Simple CE synchronisation utility with Python features (IronPython).
A demo of the Windows CE Remote API (IronPython)
RAPI Documentation:
Remote API (RAPI) - MSDN
Remote API 2 (RAPI2) - MSDN
Conclusion
This should give you everything you need to piece together a simple CLI app to programmatically launch a given app on a given emulator. Please leave a comment if you have any questions.
For deployment to the emulator from the command line, see http://sevaa.home.sprynet.com/cedeploy/