Which DLL has the Windows.Devices.Gelocation namespace?

I am using VS 2012 and I need to write code that uses classes in the Windows.Devices.Gelocation namespace. I downloaded the sample program, but it will not load in VS2012, since it requires VS 2013. And the documentation for the class does not indicate in which DLL this namespace is located.

Can someone tell me which dll contains this namespace? Is this available in .NET 4 or do I need to use .NET 4.5?

Edit

My project is a console application that runs in the background as a Windows service. The search I did indicates that I should target Windows 8 using the Windows tab of the link manager. But the Windows tab in the link manager in my project is missing, because it is not a Windows Store application. Is there a way to use this API from a desktop application?

+1
c # dll visual-studio-2012 geolocation
source share
1 answer

I found a link to the assembly I need.

On this page , under the Windows Tab section in the Core Subgroup subsection in the third paragraph, provides instructions on how to reference the required window assemblies from desktop applications. To summarize this:

  • Unload the project to which the link will be added.
  • Edit the .csproj file for the project.
  • Add the following snippet in the .csproj file:

    <PropertyGroup>
    <TargetPlatformVersion> 8.0 </TargetPlatformVersion>
    </PropertyGroup>

  • Save the edited .csproj file.

  • Reload the project.

At this point, when you open the Reference Manager dialog, you will see the Windows tab on the left. Click this and you will see a subgroup of Core . On the right, he will say "Targeting window 8.0" and under this "Windows version 255.255.255.255" will be unchecked. Check it out, then click OK and you're done.

+1
source share

All Articles