Francois
Francois

Reputation: 121

Restsharp 105.2.3 and Restsharp 100.0.0.0 in same project

I need to use Plivo and Twilio in my new voice project.

Twilio requires Restsharp 105.2.3 and Plivo requires RestSharpsigned that add Restsharp 100.0.0.0 to the project.

How can i add this two vesions of Restsharp in my projet.

Thank.

Upvotes: 1

Views: 1003

Answers (3)

viggity
viggity

Reputation: 15237

I've outlined the four general options available when you need to reference both a signed and unsigned version of an assembly here.

The option that I chose to go with was to use Brutal Dev's Strong Name Signer. It isn't ideal, but there isn't an ideal option. This is just the least amount of work. I've outlined all the steps necessary in this StackOverflow Answer

Upvotes: 0

HaimYuhter
HaimYuhter

Reputation: 471

As laurian said you can setup a version that in the restsharp will meet both the libraries dependencies but if you want to use the method get_numbers with the parameters whcich is available from plivo version 3, than you need another solution.

what i did because of plivo and twilio didnt fixed this issue yet is downloading last plivo source from github(because plivo library is much smaller than twilio) and changing from RestSharpSigned 105.0.1 to RestSharp 105.2.3 which is the last version avaliable for today. than compile it and replace the plivo.dll in the packages folder of your solution.

i know that this solution is not prefered because you may have problems with upgrading packages but it works well and maybe on the next version someone will fix this.

Upvotes: 0

laurian
laurian

Reputation: 809

I solved it by downgrading Plivo and Twilio to the latest versions that would agree to work together:

  • Plivo 1.3.7
  • Twilio 3.6.20
  • RestSharp 104.4.0

Upvotes: 2

Related Questions