Reputation: 45
Hi I am developing a Windows Universal Application and I want to use my Windows 10 Tablet which is connected to my PC by USB as a testing device for my app when I run it. How can I do this?
Upvotes: 1
Views: 1453
Reputation: 16652
I get an error of The project 'Ward obs Roaming' needs to be deployed before it can be started. So i tick deployed in the configuration manager and I still get the same error.
Can you please check if your tablet can be detected on PC while it connected to PC through USB connection is?
If your PC can detect this tablet, you will need to check whether the "Develper mode" is enabled. To enable this mode, you need to go to the Settings of both your windows 10 tablet and pc for development, then choose "Update & Security", and in the table "For developers", enable the mode "Developer mode".
Check whether you have chosen the right architecture for debugging, you have to select "Device" for it, but the platform can be x86 or x64, you will need to try it.
If you still get the error, you can also create a new empty solution and deploy it to the tablet, this will help you to know whether the problem is with your VS tool or with your solution.
Important: When you deploy your project to a device, the device must have the screen unlocked. This also a point which can cause failure of deployment.
As a backup solution, you can try remote debugging, to do this, you may refer to Deploying and debugging Universal Windows Platform (UWP) apps.
Upvotes: 0
Reputation: 1493
You can try out remote debugging.
Choose Remote Machine as the target device in the project properties.
Choose Find Device -> Enter the IP of the tablet in the dialog box shown.
Install the remote debugging tools in the target device.
You should have Remote debugger open in the target device for the connection to set up.
This link might help - https://msdn.microsoft.com/en-us/library/y7f5zaaa.aspx
Upvotes: 1
Reputation: 734
In Visual Studio, when you starting your app, select Device instead of Local Machine.
Upvotes: 0