Yes, it's possible to get the device's location in a .NET 8 WPF app without internet and without using WinRT. The best approach is to use an external GPS device (like a USB or Bluetooth GPS module) that sends location data over a serial port. You can read this data using the System.IO.Ports.SerialPort class and parse the NMEA strings it provides to get the latitude and longitude. It's a practical offline solution that works well without relying on older APIs.
How to get Device Location in .NET 8 WPF App without Internet
Sashikanta
0
Reputation points
Hi Community ,
Is it possible to obtain the device's location coordinates in a .NET 8 WPF application without requiring an internet connection? The goal is to access the location without relying on WINRT, as this only supports up to .NET 5. What alternative solutions can be utilized in .NET 8 for this purpose?