Deploy/debug app to windows 10 mobile phone via USB - visual-studio

I'm trying to create an UWP app for some old windows 10 mobile phones and deploy/debug them via USB.
I'm using Visual Studio 2017 and have set the target version to Build 10586 (to stay below 14393).
When I try to debug (freshly created UWP blank app, settings: Debug, ARM, Device), the deployment fails with this error:
DEP0100: Please ensure that target device has developer mode enabled.
Could not obtain a developer license due to error 800704C7.
Just before the failure the developer settings of my local machine pop up, so I have the feeling it is trying to deploy to my local windows 10 machine instead of the phone.

Related

App Deploying on Internal storage in Physical Device

i am building an UWP App which i am targeting to work on both Mobile and PC,
Now Problem is -
After i clean install my PC (due to some reasons), i reinstall my copy of visual studio 2015 .
Now when i deploy app to my mobile (ARM) device i deploying automatically to internal storage, but previously before clean installing PC it deploy app on Mobile SD Card automatically .
Here is something which i need to configure in visual studio ?
Screeenshot
In Mobile i also set to deploy app to SD Card

VS deploy looking for WP device instead of W10M

I've been trying to deploy my UWP app on a W10M phone via a USB connection, but VS is trying to deploy it into a WP8.1 device, which as expected, fails. The following are informative about the situation:
The app is being compiled with a target of Creators Update 1703 (b15063), and a minimum of November Update 1511 (b10586).
The app is not migrated from a WP8.1 project.
The target device OS version is 10.0.15063.297 (Insider).
Development tools are on, tried re-enabling it, no change of weather.
Tried both USB 3 and USB 2, neither are working.
The phone is visible to my PC, both in the device manager and the file explorer, and it's fully functional for data transport.
The interop is not unlocked, but New Capability Engine, Full Filesystem Access is unlocked, and the original NDTKSvc is restored.
The IDE is Visual Studio Community 2017 (15.1).
This is the first error message:
And so is the output: DEP6200: Bootstrapping failed. Device cannot be found. SmartDeviceException - Deployment failed because no device was detected. Make sure a device is connected and powered on. [0x80131500]
Thanks.

DEP3316 Error - Cannot deploy to Win10 Phone from Visual Studio 2015

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

Unable to debug UWP app in Visual Studio 2015 on a device from VMWare Fusion

I am implementing a Xamarin app for UWP (and Android and iOS). I'm using VS2015 in VMWare Fusion VM on a Macbook Pro. I am able to build and debug the UWP app in an Emulator without any problems. However I am not able to deploy and debug to a connected Lumia 950 phone over USB. The deployment starts and fails after a while with the message: DEP0001: Unexpected Error -2147023436.
It looks to me as if the file transfer over the USB is not working - however the device is connected and I can communicate with it from the virtual machine.
I have tried a lot, such as using the WinAppDeployCmd.exe command line tool to deploy to the phone. It recognizes the device and starts the package upload and then hangs.
Anybody had the same problem?

Ionic / Cordova won't deploy to Windows 10 phone

I have an existing Ionic app that I am trying to test on my Windows 10 mobile phone, but i cannot get Ionic (or Cordova) to deploy to the phone. I have added the Windows platform using ionic platform add windows and then tried to deploy using ionic run windows --device -- --phone --archs="x86" but that results in:
Deploying app package...
Unexpected error from installation:
Error: Not implemented
You may have previously installed the app with an earlier version of cordova-windows.
Ensure the app is uninstalled from the phone and then try to run again.
ERROR: Error: Not implemented
If i do ionic run windows --list to get a list of detected devices i get this:
Available windows devices:
0. Device (device)
Available windows virtual devices:
No devices found matching the specified criteria.
If I try to deploy directly to 0. Device (device) then the app launches on my desktop computer.
Windows itself can "see" my Windows 10 phone and i can browse the contents of it in Windows Explorer.
I have also enabled Developer Mode on the phone so it will load apps from anywhere and I have purchased a Windows Developer License to see if that would help, but it didn't.
Finally, I tried installing the app using the Device Portal feature, but when I try to install it, I get this error:
Failure reason: Failed to start deployment. Failure text: No signature was present in the subject.
(0x800b0100)
Has anyone else been able to deploy an Ionic / Cordova app to a Windows 10 device? If so, how did you set it up?
I had the same issue.
By default the cordova build command produces two packages: Windows 8.1 and Windows Phone 8.1. To upgrade Windows package to version 10 the following configuration setting must be added to configuration file (config.xml).
<preference name="windows-target-version" value="10.0" />
This resolved the issue.
On the Start Menu in Windows type services.msc and start the Windows Phone IP Over Usb service.

Resources