【问题标题】:LinqToTwitter v5.1.2 AspNetAuthorizer doesn't contains a definition for CredentialStoreLinqToTwitter v5.1.2 AspNetAuthorizer 不包含 CredentialStore 的定义
【发布时间】:2020-10-21 06:10:51
【问题描述】:

在我的网站 .Net Framework 4.8 中,当我从 LinqToTwitter v5.1.1 更新到 5.1.2 时,当我尝试创建 AspNetAuthorizer 的新实例时收到一条错误消息:

“AspNetAuthorizer 不包含 CredentialStore 的定义” 并且“未引用程序集中定义的AuthorizeBase。您 必须添加对程序集“LinqToTwitter.netstandard, Version”的引用 =5.1.2.0"

代码示例:

return new AspNetAuthorizer
{
    CredentialStore = new SessionStateCredentialStore
    {
        ConsumerKey = MyKey,
        ConsumerSecret = Secret
    },
    GoToTwitterAuthorization =
        twitterUrl => url
};

我尝试在 nuget 中添加使用并搜索包“LinqToTwitter.netstandard”,但不存在。

这个版本坏了吗?

【问题讨论】:

    标签: asp.net twitter linq-to-twitter


    【解决方案1】:

    这是由 LINQ to Twitter 引起的错误,该错误已得到修复和部署。这是 LINQ to Twitter 网站上已修复/已关闭的问题:

    https://github.com/JoeMayo/LinqToTwitter/issues/200

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多