C# 使用Azure bot框架时出现编译器错误CS0535
首先,我使用C#with Azure bot framework让我的bot向用户致意(发送了第一条消息),但是当我输入所需的代码时,我收到一个CS0535错误字符串 这是我的C#代码: 以下是我收到的错误:C# 使用Azure bot框架时出现编译器错误CS0535,c#,azure,chatbot,C#,Azure,Chatbot,首先,我使用C#with Azure bot framework让我的bot向用户致意(发送了第一条消息),但是当我输入所需的代码时,我收到一个CS0535错误字符串 这是我的C#代码: 以下是我收到的错误: Handling .NET Web Application deployment. MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin\amd6
Handling .NET Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin\amd64'.
All packages listed in packages.config are already installed.
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.BaseUri' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.SerializationSettings' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.DeserializationSettings' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Credentials' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Attachments' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Conversations' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\wwwroot\.\Microsoft.Bot.Sample.QnABot.csproj" /nologo /verbosity:m /t:Build /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\wwwroot\.\.\\"
An error has occurred during web site deployment.
如果有任何帮助,我们将不胜感激。那么,
ConnectorClient
是您的类还是随bot框架提供的类?错误是否与此处讨论的内容相关@DaisyShipton是的连接器客户端是由bot框架公共类连接器客户端提供的:Microsoft.Rest.ServiceClient,IDisposable,Microsoft.bot.Connector.IConnectorClient{}
@Fuzzybear不我认为这与此无关,我只是试图让bot在聊天开始时显示一条消息(在用户有机会访问之前)。是否在bot emulator中进行了尝试?
Handling .NET Web Application deployment.
MSBuild auto-detection: using msbuild version '14.0' from 'D:\Program Files (x86)\MSBuild\14.0\bin\amd64'.
All packages listed in packages.config are already installed.
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.BaseUri' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.SerializationSettings' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.DeserializationSettings' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Credentials' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Attachments' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Controllers\MessagesController.cs(14,120): error CS0535: 'ConnectorClient' does not implement interface member 'IConnectorClient.Conversations' [D:\home\site\wwwroot\Microsoft.Bot.Sample.QnABot.csproj]
Failed exitCode=1, command="D:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\home\site\wwwroot\.\Microsoft.Bot.Sample.QnABot.csproj" /nologo /verbosity:m /t:Build /p:AutoParameterizationWebConfigConnectionStrings=false;Configuration=Release;UseSharedCompilation=false /p:SolutionDir="D:\home\site\wwwroot\.\.\\"
An error has occurred during web site deployment.