推特 API 1.1.使用 .net 3.5 [英] Twitter Api 1.1. with .net 3.5

查看:24
本文介绍了推特 API 1.1.使用 .net 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 .net 3.5 框架.由于 twitter 的 api 已更改,我无法从我的网站访问我的 twitter 帐户.我已经为我的支持 Api 1.1 的项目搜索了其他替代参考.但是没办法,总是告诉我您正在尝试将此包安装到面向‘.NETFramework,Version=v3.5’的项目中,但该包不包含任何程序集引用或与该框架兼容的内容文件."

I am using .net 3.5 framework. I can not access my twitter account from my website since the twitter's api was changed. I have searched other alternative referances for my project that supports Api 1.1. But no way, always told me "You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references or content files that are compatible with that framework."

谁能告诉我一些与 twitter 的 Api 1.1 和 .net framework 3.5 兼容的其他 dll,以便我可以从我的网站再次访问我的 twitter 帐户?

Can anyone please tell me some other dlls compatible with both twitter's Api 1.1 and .net framework 3.5 so that I can access again to my twitter account from my website?

非常感谢.

推荐答案

您可以使用 TweetSharp v2.3.1.它支持 Twitter API 1.1,还提供完整的 .NET Framework 3.5(以及 2.0)支持.

You can use TweetSharp v2.3.1. It supports Twitter API 1.1 and it also provides full .NET Framework 3.5 (and also 2.0) support.

您可以通过 NuGetGitHub:如果您使用 NuGet 包管理器,则可以通过执行此操作从命令窗口安装它:

You can get it via NuGet or GitHub: if you use NuGet Package Manager, you can just install it from the Command Window by doing that:

Install-Package TweetSharp

我个人可以保证它可以工作,因为我在一个旧的 3.5 项目中使用了它并且我设法让它工作了.

I can personally guarantee that it works because I used it in an old 3.5 project and I managed to make it work.

重要说明:如果您的项目不包含 Newtonsoft Json.NET >= 5.0.6(这是必需的依赖项),NuGet 将自动尝试获取更新版本,该版本可以为您提供 .NET 3.5 兼容性问题.如果您遇到此问题,只需手动下载 Json.NET v5.0.6,删除所有将 NuGet 下载的内容(包括 .refresh 文件)替换为您下载的 Json.NET dll 文件(位于/Net35/文件夹中的文件).

IMPORTANT NOTE: if your project doesn't include Newtonsoft Json.NET >= 5.0.6 (which is a required dependance) NuGet will automatically try to get an updated version which could give you .NET 3.5 compatibility issues. If you run into this issue, just download Json.NET v5.0.6 manually, delete all the stuff downloaded by NuGet (including the .refresh file) and replace them with the Json.NET dll files you downloaded (those in the /Net35/ folder).

这篇关于推特 API 1.1.使用 .net 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆