适用于 Windows Phone 7 项目的 .NET 的 Google API 客户端库 [英] Google APIs Client Library for .NET on Windows Phone 7 Project

查看:65
本文介绍了适用于 Windows Phone 7 项目的 .NET 的 Google API 客户端库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 WP7 项目中使用适用于 .NET 的 Google API 客户端库?

Is it possible to use Google APIs Client Library for .NET in a WP7 project?

我尝试添加对 DotNetOpenAuth.dll 的新引用,但出现以下错误.

I've tried to add a new reference to DotNetOpenAuth.dll and I'm getting the folowing error.

无法将引用添加到 DotNetOpenAuth.dll,因为它不是使用 Windows Phone 运行时构建的.Windows Phone 项目仅适用于 Windows Phone 程序集.

Reference cannot be added to DotNetOpenAuth.dll because it was not built using the Windows Phone runtime. Windows Phone projects will work only with Windows Phone assemblies.

可以解决吗?

推荐答案

尝试 便携式库工具 来自 MSDN.在此处阅读有关它们的信息.现在在可移植库中引用 Google .Net 库,在 WP7 项目中也引用此可移植库项目.现在,为可移植库项目中的 Google apis 编写一个小包装器,并在您的 WP7 项目中使用它们.引用有效,但我没用过,你可以试一次.

Try Portable Library Tools from MSDN. Read about them here. Now reference Google .Net library in the portable library, also reference this portable library project in WP7 project. Now, write a small wrapper over the Google apis in the portable library project and use them from your WP7 project. Referencing works but I did not use it, you can give it a try once.

这篇关于适用于 Windows Phone 7 项目的 .NET 的 Google API 客户端库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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