C# Youtube API 错误
C# Youtube API Errors
当我想用 YouTube API 编写代码时,我在命名空间中遇到了这些错误
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
Error 1 The type or namespace name 'v3' does not exist in the
namespace 'Google.Apis.YouTube' (are you missing an assembly
reference?)
Error 2 The type or namespace name 'v3' does not exist in the
namespace 'Google.Apis.YouTube' (are you missing an assembly
reference?)
这些 "v3" 标签似乎不存在所以请帮助我
为了确保您拥有正确的库和依赖项,请尝试通过 NuGet 下载 Google.Apis.YouTube.v3 客户端库。这是您的操作:
然后在控制台中输入Install-Package Google.Apis.YouTube.v3
并回车。你应该看到这样的东西:
安装完成后,引用应该已经添加到您打开的项目中,您需要做的就是添加您的 using 语句:
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
当我想用 YouTube API 编写代码时,我在命名空间中遇到了这些错误
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
Error 1 The type or namespace name 'v3' does not exist in the namespace 'Google.Apis.YouTube' (are you missing an assembly reference?)
Error 2 The type or namespace name 'v3' does not exist in the namespace 'Google.Apis.YouTube' (are you missing an assembly reference?)
这些 "v3" 标签似乎不存在所以请帮助我
为了确保您拥有正确的库和依赖项,请尝试通过 NuGet 下载 Google.Apis.YouTube.v3 客户端库。这是您的操作:
然后在控制台中输入Install-Package Google.Apis.YouTube.v3
并回车。你应该看到这样的东西:
安装完成后,引用应该已经添加到您打开的项目中,您需要做的就是添加您的 using 语句:
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;