System.Device is for Framework 4.8, if using .net core look at https://github.com/scottschluer/geolocation
Where is system.device.location?
I am trying to use the GeoCoordinateWatcher in my WPF application. Whenever I type the using statement "using System.Device.Location" I am told it does not exist. I have read that I have to add it as a reference but when I go to the list of available references in Visual Studio I don't see it listed there. Do I have to download the dll from somewhere and then reference on my machine? I am confused.
Developer technologies Windows Presentation Foundation
Developer technologies C#
3 answers
Sort by: Most helpful
-
Karen Payne MVP 35,586 Reputation points Volunteer Moderator
2022-03-16T01:27:50.877+00:00 -
Sander van de Velde | MVP 36,761 Reputation points MVP Volunteer Moderator
2024-05-29T16:31:55.1733333+00:00 Hello @Ike,
welcome to this moderated Azure community forum.
while answering this question, it seems it resembles your question.
Did you find a solution?
If so, please share it on the other thread. If not, perhaps you can confirm the solution proposed there.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2024-05-29T18:47:52.53+00:00 the GeoCoordinateWatcher was not ported (and all planned framework porting has been completed). see issue:
https://github.com/dotnet/runtime/issues/26666
and from the thread a port: