LinqToTwitter v5.1.2 AspNetAuthorizer 不包含 CredentialStore 的定义

LinqToTwitter v5.1.2 AspNetAuthorizer doesn't contains a definition for CredentialStore

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

"AspNetAuthorizer doesn't contains a definition for CredentialStore" and "AuthorizeBase is defined in an assembly is not referenced. You must add a reference to assembly 'LinqToTwitter.netstandard, Version =5.1.2.0"

代码示例:

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

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

这个版本有问题吗?

这是 LINQ to Twitter 导致的错误,此错误已得到修复和部署。这是 LINQ to Twitter 网站上的 fixed/closed 问题:

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