其他人是否和我一样在 Bot 框架方面遇到了同样多的问题?
我只是尝试按照 Debug an Azure Bot Service bot 中的步骤操作这样我就可以在本地编辑和运行我的代码,然后将其推送到云端。经过长时间的斗争,我运行“debughost.cmd”文件,并被告知它无法解析“Bot”!
确切的错误是
D:\projects\PROJECT\messages\EchoDialog.csx(3,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
D:\projects\HelpfulCoa\messages\EchoDialog.csx(4,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
run.csx(9,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
run.csx(10,17): error CS0234: The type or namespace name 'Bot' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
代码只是 Echo 示例,我正在尽力遵循文档中的无数脆弱步骤。
还有人遇到这个问题吗?有解决办法吗?
最佳答案
这是 Function Bot 服务的一个已知问题。
https://github.com/Azure/azure-functions-host/issues/992
azure functions with nuget packages that have different versions of the same dependency
关于c# - 命名空间 'Bot' 中不存在类型或命名空间名称 'Microsoft' ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45270710/