无法构建和部署默认的 Azure Web Bot

Cannot build and deploy default Azure Web Bot

我在 Azure 中创建了一个网络机器人。该机器人正在使用 Bot SDK v4。 使用 build.cmd 在在线代码编辑器中构建机器人时出现以下错误:

Kudu sync from: 'D:\local\Temp\___deployTemp8666' to: 'D:\home\site\wwwroot\.'
Copying file: 'BasicBot.deps.json'
Copying file: 'BasicBot.runtimeconfig.json'
Copying file: 'web.config'
Ignoring: .deployment
Ignoring: deploy.cmd
Error: ENOENT: no such file or directory, open 'D:\home\site\artifacts\manifest'
Failed exitCode=1, command="D:\local\AppData\npm\kuduSync.cmd" -v 50 -f "D:\local\Temp\___deployTemp8666" -t "D:\home\site\wwwroot\." -n "D:\home\site\wwwroot\..\artifacts\manifest" -p "D:\home\site\wwwroot\..\artifacts\manifest" -i ".git;.hg;.deployment;deploy.cmd"
An error has occurred during web site deployment.

我在 Azure 中使用了默认的 Web Bot 模板 v4,并且没有对代码进行任何更改。 应用程序不应该能够开箱即用地编译和部署吗?

亲切的问候, 彼得

我终于找到了这个错误的原因。这一定是 Azure 中 Bot Creation 模板中的错误。我看到的只是没有创建 "artifacts" 文件夹。手动创建后,一切正常。