tweetinvi icon indicating copy to clipboard operation
tweetinvi copied to clipboard

Add target framework 4.7 to remove extra dependencies

Open isudakov opened this issue 5 years ago • 7 comments

Could you add .net framework 4.7 into the list of target frameworks and remove extra dependencies for it?

  • System.Collections (>= 4.3.0)
  • System.Reflection.TypeExtensions (>= 4.5.1)
  • System.Net.Http (>= 4.3.4)

They are included in the .Net Framework 4.7 and upper, so there is no need to have extra these dependencies.

isudakov avatar Oct 14 '19 21:10 isudakov

Managing multiple targets in nuget has proved very difficult in the past. So at the moment I want to focus on delivering Tweetinvi 5.0.

When that is done I will get back to that ticket.

Cheers, Linvi

linvi avatar Oct 14 '19 22:10 linvi

Hi, i use .Net Framework 4.8 and got the following errors: Error 4 An assembly with the same identity 'System.Security.Cryptography.Primitives, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references. ...System.Security.Cryptography.Primitives.dll WindowsFormsApplication1 Error 3 An assembly with the same identity 'System.Security.Cryptography.Encoding, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references. ...System.Security.Cryptography.Encoding.dll WindowsFormsApplication1 Error 2 An assembly with the same identity 'System.Console, Version=4.0.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references. ...System.Console.dll WindowsFormsApplication1

It is a fresh new project. Using VS 2013

rubberfashion avatar Nov 03 '19 09:11 rubberfashion

If you could please try with latest version of vs and let me know if you encounter the same problem.

linvi avatar Nov 07 '19 18:11 linvi

I’ve been encountering the same error using VS 2019. I’ve tried a lot of things to get it installed but it doesn’t seem to work properly any time

obmam avatar Nov 07 '19 23:11 obmam

Could you share your project?

linvi avatar Nov 08 '19 00:11 linvi

twitter bot code without keys.docx This is a very early version of what im trying to do. ive been saving it in a notepad and just copy and pasting it in every time because ive been having to switch between multiple computers. Before it worked just fine when i copy and pasted then installed the NuGet package but as of yesterday my error box fills up with what looks like incompatability errors when i try to download it. so i tried with older versions of framework where all the references installed properly but then when i run the program the console box opens and closes in 2 seconds and then a new window pops up telling me i had a break error with the error code that rubberfactory posted before. Just updated to framework 4.8 to try aswell and I get the same compatibility errors, for each package it says: package {each package name. Eg newtonsoft.json} is not compatible with net48. Then on the next line says that the packages don’t support any target frameworks

obmam avatar Nov 08 '19 14:11 obmam

Hi, i can not install the lib from the NuGet.

Could not install package 'System.Reflection.TypeExtensions 4.5.1'. 
You are trying to install this package into a project that targets '.NETFramework,Version=v4.5.2', but the package does not contain any assembly references or content files that are compatible with that framework. 
For more information, contact the package author.				

adelobosko avatar Jun 09 '21 08:06 adelobosko