Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
149 views
in Technique[技术] by (71.8m points)

c# - Twitter Api 1.1. with .net 3.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."

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?

Thanks a lot.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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

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

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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...