Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.BOT file not getting deployed to Azure Bot Service v4

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?

like image 793
Martin Kearn Avatar asked Jan 19 '26 03:01

Martin Kearn


1 Answers

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: Properties of .bot file

like image 116
Corina Avatar answered Jan 21 '26 08:01

Corina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!