Tweetinvi。 “CredentialsCreator”这个名称在当前上下文中不存在

问题描述 投票:0回答:1

在使用qazxsw poi将qazxsw poi库添加到我的qazxsw poi并尝试示例之后:

我确保添加Tweetinvi如:

nuget

我收到以下错误:当前上下文中不存在名称'asp.net application'。

c# twitter tweetinvi
1个回答
1
投票

这取决于您使用的版本,但references是不再使用的旧逻辑。

您现在可以执行以下操作:

using Tweetinvi;
using Tweetinvi.Models;
var applicationCredentials = CredentialsCreator.GenerateApplicationCredentials(ConsumerKey, 
ConsumerSecret);

我希望这可以帮助你

© www.soinside.com 2019 - 2024. All rights reserved.