找不到类型或名称空间名称"Google" [英] The type or namespace name 'Google' could not be found

查看:88
本文介绍了找不到类型或名称空间名称"Google"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的WP8项目中使用Google.Apis,但是我无法对其进行编译. 我得到了Google.Apis 1.8.1和Google.Apis.Auth 1.8.1,我可以通过IntelliSense进行访问,但是,当我尝试编译我的项目时,出现了此错误;

Im trying to use Google.Apis in my WP8 project, but im unable to compile it. I got Google.Apis 1.8.1, and Google.Apis.Auth 1.8.1, and i can access it by IntelliSense, but, when i try to compile my project, i got this error;

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

Im using Visual Studio Express 2012 for Windows Phone;

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

As you can see below, i got code-complete;

我得到了正确的参考

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

This is my final code, very simple class, only using Google.Apis;

此错误

推荐答案

您应从 NuGet程序包管理器安装Google.Cloud.Language.V1,然后安装Google Cloud SDK以便使用google项目中的api.

You should install the Google.Cloud.Language.V1 from NuGet Package Manager and then install the Google Cloud SDK for using the google apis in your project.

这篇关于找不到类型或名称空间名称"Google"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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