Sorry but this class is not supported on windows 7. It was introduced for the windows 10 uwp projects
https://learn.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation.Geolocator?view=winrt-22621
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am hoping someone has and hint for me. I have an app that uses windows geolocation service, works fine on Windows 10/11 but I am trying to get it to work on Windows 7.
The error I get is:
could not find windows type windows.devices.geolocation.geolocator
system.platformnotsupportedexception: operation is not supported on this platform
From what I can find, windows 7 should support that class so not sure why it says it cannot be found?
My project has the references to System.Runtime.dll, System.Runtime.WindowsRuntime.dll and System.Runtime.InteropServices.WindowsRuntime.dll
Sorry but this class is not supported on windows 7. It was introduced for the windows 10 uwp projects
https://learn.microsoft.com/en-us/uwp/api/Windows.Devices.Geolocation.Geolocator?view=winrt-22621