I am using Microsoft.SmartDevice.Connectivity to connect to my device and use classes like FileDeployer. I am puzzled about the propper way to connect to the device.
I am currently doing this:
DatastoreManager dsmgr = new DatastoreManager(1033);
Platform platform = dsmgr.GetPlatforms().FirstOrDefault();
Device device = platform.GetDevices().FirstOrDefault();
And it works for all the devices I can get my hands on. Which ever device I connect, classes like FileDeployer and RemoteProcess always work on the connected device with the code I submitted above.
I can't understand the way this is supposed to work, since GetDevices() always returns several devices - al though even one is connected. Even if I remove the emulators, there are still several possibilities. Even the Connect method succeeds on several devices (while only one is actually present)...
How can this be? Can anyone shed some light on the subject? What is the proper way of identifying the connected device (given that you don't know anything about the device)?