.BOT file not getting deployed to Azure Bot Service v4

北慕城南 提交于 2019-12-21 20:36:14

问题


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

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.

Changes were made via MSBOT CLI.

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

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.

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.

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?


回答1:


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

  1. Right click on the .bot file
  2. Click Properties
  3. Under file properties, verify that "Copy to Output Directory" option says Copy Always.

Here's a screencap:



来源:https://stackoverflow.com/questions/52610698/bot-file-not-getting-deployed-to-azure-bot-service-v4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!