Home:ALL Converter>Bot Framework publish and deploy to Azure from VS 2019 - missing files

Bot Framework publish and deploy to Azure from VS 2019 - missing files

Ask Time:2021-04-27T02:23:51         Author:Zoltan Hernyak

Json Formatter

I wrote a C# web bot using external resources (.lg and .dialog files), which - as I think - are not deployed along with the code. I deploy from VS2019, right click and "publish / azure / Azure App Service (windows 10)" into an already existing app service.

Which are the worst that asks almost nothing, I cant see how I can add files to the publishment package. The bot wont work on azure portal, after several hours I found where are the log files, and see that it says cant open the .lg file because it is missing.

In the adaptive dialog constructor:

this.Generator = new TemplateEngineLanguageGenerator(Templates.ParseFile(Configuration["Dialog.Templates.Root"]));

in my appsettings.json:

"Dialog.Templates.Root": "Templates/root-dialog-templates.lg",

How can I add files to copy along during the deployment?

Thanks for any suggestion and help!

Author:Zoltan Hernyak,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67271907/bot-framework-publish-and-deploy-to-azure-from-vs-2019-missing-files
yy