简体   繁体   English

命名空间“Microsoft.Bot.Builder”中不存在类型或命名空间名称“Dialogs”

[英]The type or namespace name 'Dialogs' does not exist in the namespace 'Microsoft.Bot.Builder'

I'm building a chat bot with Microsoft Azure on .NET Framework C#, installed all the references, but after update to Microsoft.Bot.Builder 4.0.7 this reference is unable to find it and showing this type of error:我正在 .NET Framework C# 上使用 Microsoft Azure 构建聊天机器人,安装了所有引用,但在更新到Microsoft.Bot.Builder 4.0.7 后,此引用无法找到它并显示此类错误:

Error CS0234 The type or namespace name 'Dialogs' does not exist in the namespace 'Microsoft.Bot.Builder' (are you missing an assembly reference?)错误 CS0234 命名空间“Microsoft.Bot.Builder”中不存在类型或命名空间名称“Dialogs”(您是否缺少程序集引用?)

There is a specific package for the Dialogs which is does not come with Microsoft.Bot.Builder even though it is the same namespace. Dialogs 有一个特定的包,它不随Microsoft.Bot.Builder一起提供,即使它是相同的命名空间。 You need to install the package Microsoft.Bot.Builder.Dialogs linked here and add that to your using statements.您需要安装 此处链接的Microsoft.Bot.Builder.Dialogs包并将其添加到您的 using 语句中。 That ought to get rid of your error.那应该摆脱你的错误。

Using Package Manager Install-Package Microsoft.Bot.Builder.Dialogs使用包管理器Install-Package Microsoft.Bot.Builder.Dialogs

Using .NET CLI (for dotnet core) dotnet add package Microsoft.Bot.Builder.Dialogs使用 .NET CLI(用于 dotnet 核心) dotnet add package Microsoft.Bot.Builder.Dialogs

With the help of the google machine, i have figured you are probably jsut needing在谷歌机器的帮助下,我想你可能需要

Microsoft.Bot.Builder.Dialogs Microsoft.Bot.Builder.Dialogs

Disclaimer , after looking around for resources and documentation on this, i have managed to find none to show the available SDK nugets免责声明,在寻找有关此的资源和文档后,我设法找到了没有显示可用的 SDK nugets

Its like they want to keep it a secret就像他们想保守秘密一样

Finally I found, they got problem with .net standard and latest bot-package update.最后我发现,他们在 .net 标准和最新的机器人包更新方面遇到了问题。 Use stable bot-package version 3.15.2 , no need to update all, just update other things except bot related reference.使用稳定的bot-package 3.15.2版本,不需要全部更新,只更新除了bot相关参考之外的其他东西。 The Problem is going to solve.问题即将解决。

You need to use the .NET framework version >=4.6.您需要使用 .NET 框架版本 >=4.6。 This error is faced when .net framework is 4.5. .net 框架为 4.5 时会遇到此错误。 Microsoft.Bot.Builder version 3.8.0 works with it. Microsoft.Bot.Builder 版本 3.8.0 可以使用它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 命名空间“Microsoft”中不存在类型或命名空间名称“Bot”? - The type or namespace name 'Bot' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ Kinect”在名称空间“ Microsoft”中不存在 - The type or namespace name `Kinect' does not exist in the namespace `Microsoft' 命名空间'microsoft'中不存在类型或命名空间名称'directx' - the type or namespace name 'directx' does not exist in the namespace 'microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“EntityFrameworkCore” - The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft 类型或名称空间名称“ Membership”在名称空间“ Microsoft.AspNet”中不存在 - The type or namespace name 'Membership' does not exist in the namespace 'Microsoft.AspNet' Azure 内部版本 - 名称空间“Microsoft”中不存在类型或名称空间名称“OpenApi” - Azure Builds - The type or namespace name 'OpenApi' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“TeamFoundation” - The type or namespace name 'TeamFoundation' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“Azure” - The type or namespace name 'Azure' does not exist in the namespace 'Microsoft' 命名空间“Microsoft”中不存在类型或命名空间名称“ServiceBus”? - The type or namespace name 'ServiceBus' does not exist in the namespace 'Microsoft'? 类型或名称空间名称“ Lync”在名称空间“ Microsoft”中不存在 - The type or namespace name 'Lync' does not exist in the namespace 'Microsoft'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM