Visual Studio 2013 - NuGet 使用 Twilio 库加载 Restsharp 105.0.Twilio 依赖于 104.4 [英] Visual Studio 2013 - NuGet loads Restsharp 105.0 with Twilio library. Twilio is dependent on 104.4
问题描述
是否有新的 Twilio 包在路上?我刚刚注册了您的服务,但由于依赖于 RestSharp V104.4,我收到了异常.Nuget 使用 Twilio 库安装 Restsharp v105.0.
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);
错误是:
无法加载文件或程序集RestSharp,版本=104.4.0.0..."
Could not load file or assembly "RestSharp, Version=104.4.0.0..."
推荐答案
您可以通过包管理器控制台安装正确版本的 RestSharp 来避免该问题.
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
这应该可以解决问题.
这篇关于Visual Studio 2013 - NuGet 使用 Twilio 库加载 Restsharp 105.0.Twilio 依赖于 104.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!