1

While installing the next-gen version of twilio-csharp in Visual Studio 2013 (used Install-Package with the -Pre switch), but the below error happened.

PM> Install-Package Twilio -Pre
Attempting to resolve dependency 'Portable.JWT (= 1.0.5)'.
Attempting to resolve dependency 'Newtonsoft.Json (≥ 8.0.1)'.
Attempting to resolve dependency 'Portable.BouncyCastle (≥ 1.8.0)'.
Install-Package : 'Portable.BouncyCastle' already has a dependency defined for 'System.Collections'.
At line:1 char:1
+ Install-Package Twilio -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I tried taking help from an existing issue but to no success. Though its an alpha version, it should work... am not sure if am doing something incorrectly.

Community
  • 1
  • 1
Wali
  • 440
  • 1
  • 4
  • 21
  • That looks like an issue with the dependencies of the BouncyCastle library. Report it to them... if it is alpha it may have been modified recently and come with a pleasant bug. – MiltoxBeyond Jan 06 '17 at 19:17
  • 1
    Instead of simply -pre, try the following command: `Install-Package Twilio -prerelease` – Megan Speir Jan 10 '17 at 00:19
  • This question has been answered here: https://stackoverflow.com/a/36662092/738188 – Claire Novotny Dec 03 '17 at 00:57
  • Thanks for taking time out and answering... i should have answered my question too. Megan's comment helped me. – Wali Dec 03 '17 at 17:05

1 Answers1

0

Thanks Megan for your comment... I downloaded the stable version and it worked fine. Also, later on I upgraded to the async version of the api's and that worked like a charm too.

Wali
  • 440
  • 1
  • 4
  • 21