【发布时间】:2014-12-28 21:04:22
【问题描述】:
我最近制作了自己的 ubuntu/jenkins/git/sonar 构建服务器,并试图用它构建我的 .net 控制台应用程序。
它似乎构建得非常好,我使用单声道从 jenkins 运行它:
Thermostate setting through Google Calendar API
====================
ERROR: Could not load type 'Google.Apis.Auth.OAuth2.BearerToken+AuthorizationHeaderAccessMethod' from assembly 'Google.Apis.Auth, Version=1.9.0.26011, Culture=neutral, PublicKeyToken=null'.
我启用了 nuget,它告诉我
Restoring NuGet packages...
在构建期间,所以它似乎捕获了 nuget 包。
以 sudo 的形式运行所有内容,从终端得到这个:
vagrant@vagrant-ubuntu-utopic-64:/var/lib/jenkins/jobs/CalendarAPI/workspace/ConsoleApplication3$ sudo mono /var/lib/jenkins/jobs/CalendarAPI/workspace/ConsoleApplication3/bin/Debug/ConsoleApplication3.exe
Thermostate setting through Google Calendar API
====================
Could not load signature of Google.Apis.Auth.OAuth2.BearerToken+AuthorizationHeaderAccessMethod:Intercept due to: Could not load file or assembly or one of its dependencies.
Could not load signature of Google.Apis.Auth.OAuth2.IAccessMethod:Intercept due to: Could not load file or assembly or one of its dependencies.
ERROR: Could not load type 'Google.Apis.Auth.OAuth2.BearerToken+AuthorizationHeaderAccessMethod' from assembly 'Google.Apis.Auth, Version=1.9.0.26011, Culture=neutral, PublicKeyToken=null'.
我做错了什么?
【问题讨论】:
-
Google.Apis.Auth程序集在哪里? -
它位于 /var/lib/jenkins/jobs/CalendarAPI/workspace/packages/Google.Apis.Auth.1.9.0/lib/net40/Google.Apis.Auth.dll
标签: git ubuntu jenkins msbuild mono