Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...