Multiple WindowsPhone Devices on Visual Studio 2012 - windows-phone-7

How can i use multiple WP device in Visual Studio? I need to test an application on multiple devices at the same time, how can I do? I do not need to start debugging on both, I just need to be able to deploy on both phones. One is WP8 and the other WP7. Thanks for the help

Sorry, you can't automate deployment to multiple devices using Visual Studio, DeployXap or CoreCon11 APIs. The way Visual Studio 2012 and DeployXap.exe do their thing is by using the CoreCon11 APIs (which I demoed here and explained here). However, the way CoreCon11 APIs work is that they only recognize one physical connected device at a time and one version of each emulator. Here's a print out of all available devices on a machine with 2 WP8s connected to it:
As you can see, there's only one "device" available from the CoreCon11 APIs. Because CoreCon11 APIs only support deployment to a single device, you can't automate those APIs or anything using them to deploy to multiple devices.
It might be possible to change how the CoreCon11 DataStore PlatformContainer works and add additional devices, but I don't have a code sample to share.

You can deploy to the first phone by connecting it and selecting Deploy from the Build menu. You can then disconnect the first device, connect the second device and debug as per usual.

Related

Visual Studio 2022 Xamarin boot emulator with Live Share

We are trying with a friend to write a mobile application (Xamarin.Forms).
Using Live Share we are connected and can co-write code and stuff. But at the same time, debugging works only on the side of the creator. The emulator itself was launched, but the application is visible only in the main group. Tried all the settings and gave permission for everything in options.LiveShare. Is there any way to use this app?
According to this thread , VS2019 still doesn't allow shared debugging of Xamarin sessions.You may want to post an feature request here https://github.com/MicrosoftDocs/live-share/issues?q=

Deploy/debug app from VS 2019 to windows 10 mobile phone via USB

I have some old windows 10 mobile phones, that I want to give a second life as a music device for my kids. Since I have Visual Studio 2019 Enterprise at my hands, I thought I try to create something myself.
Not I tried to create an UWP app and a Xamarin app and try to debug them on the phone (connected via USB, developer mode enabled, unlocked). But with both I get this error:
DEP6957: Failed to connect to device '127.0.0.1' using Universal
Authentication. Please verify the correct remote authentication mode
is specified in the project debug settings. COMException ... HRESULT:
0x8007274D) [0x8007274D]
The apps are still in their initial state after creating the project, no modifications done. The settings for debugging are set to: Debug, ARM, Device
I had some experience with an older Visual Studio version and windows phone 7, back then it just worked and all the documents I could google up suggest, while there are new ways, it should still work via USB.
If you plan to develop Windows 10 Mobile App, you need to use Visual Studio 2017 and make sure the target version of the app is below 14393.
Visual Studio 2019 no longer supports deploying UWP apps on mobile phones.
Best regards.
sometime i must reboot service something like windowsphone ipoverusb

Check performance of Installed app in WIndows Phone

I'm trying to check the performance (CPU, Memory, Battery, etc) of popular apps (like Facebook, Youtube, etc) on a Windows Phone Device. However, unlike iOS and Android, I do not see an option to check the performance of installed apps in Visual Studio. Is there a way to perform this analysis using any tools or is it only possible to check the performance of apps with source code?
I think you are looking for windows phone application analysis. From Visual Studio you can accessed for BUILD menu or ALT+F11

Incorrect number of CPU in android emulator

I’m using Visual Studio emulator for Android and I’m trying to emulate a single core device similar to google Nexus S however I end up with a 2 core device no matter what I do. In Hyper-V manager under settings I see 2 virtual processors. Same happens when I try to emulate a  4-core device and again I see 2 virtual processors in Hyper-V manager.  Benchmark tests show same values for those virtual devices.   Is this supposed to work like this?  How do I create a device with 1 or 4 core?
Right now, the VS Emulator for Android only runs with two cores. No matter what values are "set" it, will revert to 2 cores. If that's a feature you'd like to see, feel free to let us know on our UserVoice page: http://visualstudio.uservoice.com/forums/121579-visual-studio-2015/category/91622-vs-emulator-for-android
you can setup a Nexus S emulator right from within Visual Studio.
I was able to go to Tools -> Android -> Android Emulator Manager
From there I clicked on Create
And then I chose Nexus S and setup all required settings.
Do you have the same options and does this setup the emulator you are looking for?

Can you debug from Visual Studio 2012 directly to Microsoft Surface (or any Windows 8 RT tablet)?

I have not been able to find any documentation on if you can run applications in debug from a Windows 8 RT based tablet (such as the new Microsoft Surface) like you can on the iPad or Android devices.
Does anyone know if this is possible, and if so (or not), is there any documentation anywhere pointing to such?
Yes, Visual Studio remote debugging supports debugging an app running on an ARM target. You can find more information "What you need to know about developing for Windows on ARM (WOA)."
Visual Studio has the remote debugging tools for working with external devices and other computers. In a Windows Store application project you go to the project properties and click the debug tab. Choose the target device in the dropdown Debug settings (click to see screenshot)
You'll need the setup remote debug service on your tablet and on your dev computer. The devices need to be on the same network subnet. I'm not sure how that will work on the Surface ARM device, as they cannot join a domain. I guess we'll know more once the hardware ships.
Get your remote debugging tools at Visual Studio Downloads.
Jason Zander has a post about working with ARM devices that might be helpful.

Resources