我发现了一个很短的工作实例获得与谷歌联系人API这里联系人:http://www.daimto.com/google-contacts-with-c/,但是当我试图把它翻译到VB网,我有以下错误:问题从C#转换到VB网
BC30652 a reference to assembly 'Google.Apis.Core, Version = 1.8.1.31685, Culture = neutral, PublicKeyToken = null' containing the type 'IDataStore' is required. Add it to the project
这是给我的错误只有一部分:
UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = clientId, ClientSecret = clientSecret }
, scopes
, "test"
, CancellationToken.None
, new FileDataStore("test")).Result;
在VB中网,我有:
Dim credential As UserCredential = GoogleWebAuthorizationBroker.AuthorizeAsync(New ClientSecrets() With {
.ClientId = clientId,
.ClientSecret = clientSecret
}, scopes, "test", CancellationToken.None, New FileDataStore("test")).Result
错误从GoogleWebAuthorizationBroker
出现。任何人都可以帮助我正确翻译?
您是否添加了程序集参考? –
当你看到错误时,你做了什么?你读过它吗? –
该问题与转换问题无关。只需要在组件中添加一个DLL即可。也许这个话题应该被重新渲染。 – etalon11