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
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:
Add the following snippet anywhere in the .csproj file:
<PropertyGroup>
<TargetPlatformVersion>8.0</TargetPlatformVersion>
</PropertyGroup>
Save the edited .csproj file.
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.