Will Windows 8 support System.Device.Location?

I am writing Windows 7 applications using System.Device.Location , which depends on Windows Sensor and Platform Location. I am downloading a Consumer preview, but I cannot find it.

Thanks.

+4
source share
3 answers

According to the documentation, in the .NET Framework 4.5:

http://msdn.microsoft.com/en-us/library/system.device.location(v=vs.110).aspx

However, it looks like Windows 8 Metro apps have this namespace:

http://msdn.microsoft.com/en-us/library/windows/apps/br230232(v=vs.110).aspx

However, it seems that some of the classes in the System.Device.Location namespace have migrated to the Windows.Devices.Geolocation namespace, which is located in Metro:

http://msdn.microsoft.com/en-us/library/windows/apps/br229921.aspx

What this means is not if they are equivalent. You may not be able to just change the namespaces, so some code fixing may be required. At first glance, they look as if they are solving the same problem.

+6
source

Use a namespace instead

 using Windows.Devices.Geolocation; 
0
source

The GeoLocation class will work for you! What he does, he will bring you your latitude and longitude.

-1
source

Source: https://habr.com/ru/post/1414691/


All Articles