无法编译最新版本google-api-dotnet-client。 - GoogleApi.Core

时间:2014-03-25 23:05:43

标签: google-api-dotnet-client

构建日志     ------ Build build:项目:GoogleApis.Core,配置:调试任何CPU ------     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(161,60):错误CS1003:语法错误,'('预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(161,69):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(162,31):错误CS1044:不能在for,using,fixed或者中使用多种类型声明     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(162,48):错误CS1002 :;预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(175,32):错误CS1519:无效令牌'(' in class,struct ,或接口成员声明     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(175,56):错误CS1519:无效令牌')'在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(178,13):错误CS1519:无效令牌'做'在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(180,63):错误CS1519:无效令牌'(' in class,struct ,或接口成员声明     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(182,30):错误CS1519:无效令牌'!='在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(184,37):错误CS1519:无效的令牌'(' in class,struct ,或接口成员声明     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(185,30):错误CS1519:无效令牌' ='在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(187,17):错误CS0116:命名空间不能直接包含字段或方法等成员     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(219,84):错误CS1518:预期的类,委托,枚举,接口或结构     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(229,21):错误CS0116:命名空间不能直接包含字段或方法等成员     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ ConfigurableMessageHandler.cs(240,17):错误CS1022:类型或命名空间定义,或预期的文件结束     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(122,41):错误CS1003:语法错误,'('预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(122,60):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(122,96):错误CS1002 :;预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(125,48):错误CS1519:无效令牌'!='在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(125,59):错误CS1520:方法必须具有返回类型     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(125,103):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(125,104):错误CS1002 :;预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(127,60):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(127,83):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(127,107):错误CS1001:预期的标识符     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(127,108):错误CS1002 :;预期     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(128,21):错误CS1519:无效令牌'。'在类,结构或接口成员声明中     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(128,22):错误CS1520:方法必须有返回类型     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(128,37):错误CS1031:预期类型     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(130,13):错误CS0116:命名空间不能直接包含字段或方法等成员     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(137,24):错误CS1518:预期的类,委托,枚举,接口或结构     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(156,17):错误CS1518:预期的类,委托,枚举,接口或结构     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(179,27):错误CS1518:预期的类,委托,枚举,接口或结构     C:\ Work \ BM Projects \ GoogleAPI \ v3 Source \ Src \ GoogleApis.Core \ Apis \ Http \ BackOffHandler.cs(183,5):错误CS1022:类型或命名空间定义,或期望的文件结尾

Compile complete -- 34 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found

Compile complete -- 1 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.Auth, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found

Compile complete -- 1 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.DotNet4, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis\bin\Debug\Google.Apis.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found

Compile complete -- 2 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.Auth.Mvc4, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Auth\bin\Debug\Google.Apis.Auth.dll' could not be found

Compile complete -- 2 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.Auth.DotNet4, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.DotNet4\bin\Debug\Google.Apis.PlatformServices.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Auth\bin\Debug\Google.Apis.Auth.dll' could not be found

Compile complete -- 3 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.Tests, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.DotNet4\bin\Debug\Google.Apis.PlatformServices.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis\bin\Debug\Google.Apis.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found

Compile complete -- 3 errors, 0 warnings
  All packages listed in packages.config are already installed.
------ Build started: Project: GoogleApis.Auth.Tests, Configuration: Debug Any CPU ------
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Tests\bin\Debug\Google.Apis.Tests.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Core\bin\Debug\Google.Apis.Core.dll' could not be found
error CS0006: Metadata file 'C:\Work\BM Projects\GoogleAPI\v3 Source\Src\GoogleApis.Auth\bin\Debug\Google.Apis.Auth.dll' could not be found

编译完成 - 3个错误,0个警告   package.config中列出的所有软件包都已安装。 ==========构建:0成功或最新,8失败,0跳过==========

我已经下载了最新的源代码,然后尝试重新编译整个解决方案。我在两个文件上遇到很多错误。

我正在运行安装了.Net 4.0和.Net 4.5的Windows7。我正在使用VS2010 SP1并尝试构建到.NET 4.0。

我发现尝试在Access中使用GoogleAPI客户端(使用COM Interop)存在问题。我试图重新编译整个项目,以便我可以对API进行更改,看看我是否可以确定发生了什么。我编写了一个.NET dll,然后我在.NET测试应用程序中使用它,一切都很完美。 (添加/更新/查找/删除日历条目)。一旦我尝试在Access中使用(使用Com Interop),我就会收到错误。

我能够进入代码并找到错误发生的确切行。 当运行两种不同的方式时,IList似乎有些不同。我试图看看它是否可以很容易地修复。

再次令人困惑的是,如果使用.NET Windows窗体和Dll(在VS2010 IDE或编译的exe中)运行,它在同一台机器上完美运行,但如果我尝试在访问中使用dll则失败。 dll已正确注册,因为我可以介入使用VS2010并且我已成功运行代码以构建EventAttendee集合。

我必须使用COM,因为我正尝试将访问应用程序中的集成替换为可访问Google日历的Outlook。

任何想法都将不胜感激。

布伦特麦考 brent@brentmccaw.com

0 个答案:

没有答案