微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在我的本地开发中从 twilio 运行约会提醒-csharp 时出错

如何解决在我的本地开发中从 twilio 运行约会提醒-csharp 时出错

我只是按照 twilio 上的获取 with the appointment-reminders-csharp 进行操作,然后在我的 local machine 上尝试 但是当我尝试构建/运行它以及重建解决方案时出现了一些错误

错误信息下方:

Rebuild started...
1>------ Rebuild All started: Project: AppointmentReminders.Web,Configuration: Debug Any cpu ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targe
1>ts(2123,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Twilio,Version=5.52.1.0,1> Culture=neutral,processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is req
1>uired by your code,you may get compilation errors.
1>C:\Twilio\appointment-reminders-csharp\AppointmentReminders.Web\Domain\Twilio\RestClien
1>t.cs(2,7,2,13): error CS0246: The type or namespace name 'Twilio' Could not be found (are you missing a using directive
1> or an assembly reference?)
1>C:\Twilio\appointment-reminders-csharp\AppointmentReminders.Web\Domain\Twilio\RestClien
1>t.cs(3,3,13): error CS0246: The type or namespace name 'Twilio' Could not be found (are you missing a using directive
1> or an assembly reference?)
1>C:\Twilio\appointment-reminders-csharp\AppointmentReminders.Web\Domain\Twilio\RestClien
1>t.cs(4,4,13): error CS0246: The type or namespace name 'Twilio' Could not be found (are you missing a using directive
1> or an assembly reference?)
1>C:\Twilio\appointment-reminders-csharp\AppointmentReminders.Web\Domain\Twilio\RestClien
1>t.cs(10,26,10,43): error CS0246: The type or namespace name 'ITwilioRestClient' Could not be found (are you missing a u
1>sing directive or an assembly reference?)
1>C:\Twilio\appointment-reminders-csharp\AppointmentReminders.Web\Domain\Twilio\RestClien
1>t.cs(20,27,20,44): error CS0246: The type or namespace name 'ITwilioRestClient' Could not be found (are you missing a u
1>sing directive or an assembly reference?)
2>------ Rebuild All started: Project: Appointments.Web.Tests,Configuration: Debug Any cpu ------
2>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targe
2>ts(2123,2> Culture=neutral,processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is req
2>uired by your code,you may get compilation errors.
2>CSC : error CS0006: Metadata file 'C:\Twilio\appointment-reminders-csharp\AppointmentRe
2>minders.Web\bin\AppointmentReminders.Web.dll' Could not be found
========== Rebuild All: 0 succeeded,2 Failed,0 skipped ==========

这里,我使用的是 Visual Studio 2019 Community Edition 和已安装的 SDK:

>❯ dotnet --list-sdks
1.1.14 [C:\Program Files\dotnet\sdk]
2.1.519 [C:\Program Files\dotnet\sdk]
2.2.104 [C:\Program Files\dotnet\sdk]
3.0.103 [C:\Program Files\dotnet\sdk]
3.1.300 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]

感谢您的帮助。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。