Twitter的API 1.1。使用.NET 3.5 [英] Twitter Api 1.1. with .net 3.5

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

问题描述

我使用.NET 3.5框架。我无法从我的网站访问我的Twitter帐户,因为Twitter的API被改变。我已经寻找我的项目,它支持阿比1.1其他替代referances。但是没办法,总是对我说:你要安装这个包到该目标的.NETFramework,版本= 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,这样我可以从我的网站再次访问我的Twitter帐户兼容其他的dll?

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.

您可以通过的NuGet 或的 GitHub上:如果您使用的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(这是一个必需的Dependance)的NuGet会自动尝试获得更新的版本,它可以给你。 .NET 3.5的兼容性问题。如果遇到这个问题,只需下载Json.NET v5.0.6手动的,删除所有的Nu​​Get(包括.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).

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

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