Which DLL has the Windows.Devices.Gelocation namespace?

后端 未结 1 1542
感情败类
感情败类 2021-01-25 02:33

I\'m using VS 2012 and I need to write code that uses the classes in the Windows.Devices.Gelocation namespace. I downloaded the sample program but it won\'t load in VS2012 as i

相关标签:
1条回答
  • 2021-01-25 03:02

    I've found how to reference the assembly I need.

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

    1. Unload the project to which the reference will be added.
    2. Edit the .csproj file for the project.
    3. Add the following snippet anywhere in the .csproj file:

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

    4. Save the edited .csproj file.

    5. Reload the project.

    At this point, when you open the Reference Manager dialog, you'll see a Windows tab on the left. Click that, and you'll see the Core subgroup. To the right, it'll say "Targeting Window 8.0" and under that "Windows version 255.255.255.255" will be unchecked. Check it off then click OK & you're done.

    0 讨论(0)
提交回复
热议问题