.BOT文件未部署到Azure Bot Service v4 [英] .BOT file not getting deployed to Azure Bot Service v4

查看:74
本文介绍了.BOT文件未部署到Azure Bot Service v4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将Azure Bot Service与C#Bot Builder SDK v4 v4.0.7(GA版本于2018年9月发布)一起使用.

Using Azure Bot Service with C# Bot Builder SDK v4 v4.0.7 (the GA version released September 2018).

我正在使用 BOT文件存储GenericService的配置设置,因此已更改了Azure模板随附的默认BOT文件.

I'm using the BOT file to store configuration settings for a GenericService and so have changed the BOT file from the default that was provided with the Azure template.

通过 MSBOT进行了更改CLI .

通过模拟器在本地运行时,机器人代码会看到修改后的本地BOT文件,一切正常.

When running locally via the emulator, the bot code sees modified local BOT file and all is good.

但是,BOT从未部署到Azure,因此Azure服务看不到我的更改(它被默认BOT文件所卡住).我已经通过Visual Studio publish和GitHub CI进行了部署.

However, the BOT is never deployed to Azure and therefore the Azure service does not see my changes (it is stuck with the default BOT file). I've deployed via Visual Studio publish and GitHub CI.

我必须使用Visual Studio Cloud Explorer手动上传文件,然后该bot才能使用修改后的版本,一切都很好.

I had to manually upload the file using Visual Studio Cloud Explorer and the bot was then able to use the modified version and all is good.

问题是为什么BOT文件没有与其余的bot代码一起部署,以及如何确保已部署它.不确定这是否是错误?

Question is why is the BOT file not deployed with the rest of the bot code and how can I make sure it is deployed. Not sure if this is a bug or not?

推荐答案

我相信这是部署.bot文件的修补程序.在Visual Studio中,

I believe this is the fix to deploy the .bot file. In Visual Studio,

  1. 右键单击.bot文件
  2. 点击属性
  3. 在文件属性下,确认复制到输出目录"选项显示始终复制".

这是一个屏幕截图:

Here's a screencap:

这篇关于.BOT文件未部署到Azure Bot Service v4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆