Visual Studio 2013 - NuGet loads Restsharp 105.0 with Twilio library. Twilio is dependent on 104.4

不问归期 提交于 2019-12-08 09:23:09

问题


Is a new Twilio package on the way? I just signed up for your service and I'm getting the exception due to a dependency on RestSharp V104.4. Nuget installs Restsharp v105.0 with the Twilio library.

The error occurs when I hit this line:

var twilio = new TwilioRestClient(AccountSid, AuthToken);

Error is:

Could not load file or assembly "RestSharp, Version=104.4.0.0..."


回答1:


You can avoid the problem by installing the correct version of RestSharp through Package Manager Console.

Make sure you have the right default project selected in the dropdown and type:

Update-Package RestSharp -Version 104.4.0.0

This should make the problem go away.



来源:https://stackoverflow.com/questions/26744241/visual-studio-2013-nuget-loads-restsharp-105-0-with-twilio-library-twilio-is

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