visual studio要求在添加的包库中浏览到文件

时间:2014-05-26 19:37:44

标签: vb.net visual-studio-2013 twilio

我通过nuget将Twilio包添加到我的项目中。该软件包下载了所有必需的依赖项。我创建了一个简单的sub来发送一个示例短信进行测试。(是的,我已经确认accountSid和authToken变量具有正确的值。)

当单步执行此子程序以找出它无法正常工作的原因时,就行Dim client = New TwilioRestClient ......

Visual Studio将我转储到文件下载对话框,查找Core.cs文件。这是一个VB.Net Web应用程序项目,但我认为该程序包适用于所有.Net语言,但也许我错了?

项目中引用了所有必需的Twilio dll。任何帮助表示赞赏。

 Public Shared Sub SendAuthCodeViaSms(ByVal number As String)
        Dim twilioAccountInfo As Dictionary(Of String, String) = XmlParse.GetAccountInfoFromXmlFile("twilio")
        Dim accountSid As String = twilioAccountInfo("username")
        Dim authToken As String = twilioAccountInfo("password")
        If (Not String.IsNullOrEmpty(accountSid) AndAlso Not String.IsNullOrEmpty(authToken)) Then
            Dim client = New TwilioRestClient(accountSid, authToken)
            client.SendMessage(TwilioSendNumber, number, "Testing twilio text message send functionality")
        Else
            'log error and alert developer
        End If

    End Sub

地址信息

取消文件搜索对话框时出现错误消息;

Locating source for 'C:\Users\demo\Documents\GitHub\twilio- csharp\src\Twilio.Api\Core.cs'. Checksum: MD5 {64 ba 18 a6 c7 3e 56 93 be d5 41 d3 9d 5f 12 20} The file 'C:\Users\demo\Documents\GitHub\twilio-csharp\src\Twilio.Api\Core.cs' does not exist. Looking in script documents for 'C:\Users\demo\Documents\GitHub\twilio-csharp\src\Twilio.Api\Core.cs'... Looking in the projects for 'C:\Users\demo\Documents\GitHub\twilio-csharp\src\Twilio.Api\Core.cs'. The file was not found in a project. Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\crt\src\vccorlib\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\mfc\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\src\atl\'... Looking in directory 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include'... Looking in directory 'F:\'... The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: C:\Users\demo\Documents\GitHub\twilio-csharp\src\Twilio.Api\Core.cs. The debugger could not locate the source file 'C:\Users\demo\Documents\GitHub\twilio-csharp\src\Twilio.Api\Core.cs'.

当nuget将dll安装到我的项目中时,为什么文件会在机器上?你不能调试到一个DLL。

0 个答案:

没有答案