c# - 找不到类型或命名空间名称 'Google'

标签 c# windows-phone-8 google-api-dotnet-client

我试图在我的 WP8 项目中使用 Google.Apis,但我无法编译它。 我有 Google.Apis 1.8.1 和 Google.Apis.Auth 1.8.1,我可以通过 IntelliSense 访问它,但是,当我尝试编译我的项目时,我遇到了这个错误;

我正在为 Windows Phone 使用 Visual Studio Express 2012;

正如您在下面看到的,我已经完成了代码;

enter image description here

我得到了正确的引用

enter image description here

这是我的最终代码,非常简单的类,只使用 Google.Apis;

enter image description here

还有这个错误 enter image description here

最佳答案

您应该从 NuGet Package Manager 安装 Google.Cloud.Language.V1,然后安装 Google Cloud SDK 以便在您的项目中使用 Google API。

enter image description here

关于c# - 找不到类型或命名空间名称 'Google',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22482495/

相关文章:

c# - 清除事件的优雅方式

azure - 如何获取有关新添加的主题或队列的通知?

c# - WP8 拍摄 map

c# - 使用服务帐户身份验证访问 Google Calendar API

c# - 从 Azure 调用 Google API : "Access is denied"

c# - 新 TcpListener 实例的 AcceptTcpClientAsync() 上出现 ObjectDisposeException

c# - 使用 Moq 模拟 GetEnumerator

c# - 如何开始使用 Windows Phone SDK 8.1?

c# - Google PageSpeed API dotnet .net

c# - 如何在 Silverlight XAML 中引用另一个命名空间中的绑定(bind)转换器?