In one of the labs I’m writing for the Windows Phone Training Kit I’m using kind of GPS Emulator for simulating a geographic location (Latitude, Longitude). This simulator comes in handy when writing location aware application, and you don’t really have a GPS on the emulator. So instead of using C# pragmas for picking the correct path, knowing whether the application is running on a real device or not, there is an easy static property for checking that:
if (Microsoft.Devices.Environment.DeviceType ==
MessageBox.Show("Running on Emulator");
MessageBox.Show("Running on Device");
Opening Microsoft.Phone.dll using reflector is seams like the:
Yea, that is suspicious. It looks like the phone device itself has different assemblies.
But this works fine on my WP7 device.
Enjoy using the Emulator, but don’t forget to test your application on a real device…