Reputation: 121
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
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
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
Reputation: 809
I solved it by downgrading Plivo and Twilio to the latest versions that would agree to work together:
Upvotes: 2