Twilio RestSharp Dependency

你说的曾经没有我的故事 提交于 2019-12-04 05:17:35
Marcos Placona

Twilio developer evangelist here.

We had to "lock" the twilio-csharp library to version 105.0.1 due to the fact that every time RestSharp updates, we need to release a new version or fix bugs they introduce to the library. Seems they have just updated the library on August 16th which would have completely removed the Basic Authenticator module from the library

Now, since you're saying you updated RestSharp to version 105.2.1, I believe you will have done that by going to Nuget Package Manager and clicking Update All, which would then update your packages regardless of what is described on the packages.config file (even that file would then be updated).

To fix that, all you need to do, is go to your package manager console and run the following:

Install-Package RestSharp -Version 105.1.0

This will then revert your packages.config to use the correct version, and your project should work again.

As for your second question, we have been working on an Alpha version that uses a stripped out version of RestSharp, but that is unfortunately not yet safe for production yet.

Hope this solves your problem.

UPDATE: Just thought I'd add an update here to let you know I've now added a new version of the package that supports Restsharp 105.2.1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!