我在将youtube api集成到我的web应用程序时遇到了一些问题,我确实使用了Analytics spi和这项工作,但是当我尝试添加youtube服务时出现此错误:
Il tipo 'Google.Apis.Services.BaseClientService' è definito in un assembly di cui manca il riferimento. Aggiungere un riferimento all'assembly 'Google.Apis, Version=1.10.0.25332, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab'.
这里的代码
using Google.Apis;
using Google.Apis.Auth;
using Google.Apis.Services;
using Google.Apis.Analytics.v3;
using Google.Apis.Analytics.v3.Data;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
public class DashBoard
{
protected ServiceAccountCredential credential = null;
protected AnalyticsService analytics_service = null;
protected YouTubeService youTube_service = null;
.....
产生错误的行是:protected YouTubeService ....删除所有工作,添加此错误
我该怎么检查才能发现错误?
最佳答案
您需要检查三点
关于.net - .net youtube库集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34414294/