Windows.Devices.Geolocation 需要什么 dll? [英] What dll is needed for Windows.Devices.Geolocation?

查看:20
本文介绍了Windows.Devices.Geolocation 需要什么 dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个 WCF 应用程序,它将当前平板电脑的位置存储到本地数据库.我可以看到微软有一个用于查询当前位置的 API.但是我找不到任何 MSDN 文章指定要添加到我的项目中的 dll 以使用

I am trying to write a WCF application which will store current tablet's location to a local database. I can see that Microsoft has an API for querying current location. But I couldn't find any MSDN article specifying which dll's to add to my project in order to use the Windows.Devices.Geolocation namespace.

Here's the GitHub example provided from Microsoft, but I can't run it because it requires Visual Studio 2015. My company does not allow migration to VS 2015, so I am still stuck with VS 2013.

Could any one please explain how I can create a WCF project using VS 2013 and query current geo location of a tablet?

Thanks

解决方案

From the article about Launch a Universal App from a WPF App, we can add references to Windows Runtime dll's manually by browsing to .NET folder: C:\Windows\Microsoft.NET\Framework\v4.0.30319

I am able to add using statements after adding references to System.Runtime.dll, System.Runtime.WindowsRuntime.dll, and most importantly, System.Runtime.InteropServices.WindowsRuntime.dll

这篇关于Windows.Devices.Geolocation 需要什么 dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆