Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Using Visual Studio Community version, I have code that requires using the GeoPoint class. After doing some search online I found that it is likely that this class is part of the Microsoft Windows.Devices.Geolocation namespace.

I have restrictions on my work computer. And these restrictions are preventing me from conducting a solution I found online which is to use a more current .NET framework which includes this missing class. I downloaded and tried installing the following files, but I did not have the system privledges to do so.

https://aws1.discourse-cdn.com/sitepoint/original/3X/1/8/1840e12cf92f9937879b683dbd214ea5e3396241.png[^]

Instead, I am going to have to use visual studio IDE to import a .nupkg file as a nuget package. The question I have is: Where do I find the right .nupkg file that will have the proper GeoPoint class?

What I have tried:

I tried to do things but I do not have admin privledges to run elevated.
Posted
Updated 9-Jan-22 8:36am

1 solution

You can't. Microsoft do not release code using NuGet - if it is part of .NET 4, then you need to install the whole of .NET 4 and update your whole app to use that version of the framework as you cannot "mix'n'match" a later .NET version assembly with an earlier .NET version project.

Time to consult you boss / company IT dept about updating your dev environment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900