原帖在此,
https://github.com/DevKitExamples/DevKitChatBot
这里有将几个注意点:
当前这个项目描述有几个问题。
Step2
该处训练的lu模型并没有介绍如何使用。
Step3
第2句 源程序即demo-bot-app可能运行有误,报错“requires Microsoft.BotBuilder.Azure Nuget package”。问题大致出于此。
protected void Application_Start()
{
// Bot Storage: This is a great spot to register the private state storage for your bot.
// We provide adapters for Azure Table, CosmosDb, SQL Azure, or you can implement your own!
// For samples and documentation, see: https://github.com/Microsoft/BotBuilder-Azure
Conversation.UpdateContainer(
builder =>
{
builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly()));
// Using Azure Table Storage
var store = new TableBotDataStore(ConfigurationManager.AppSettings["AzureWebJobsStorage"]); // requires Microsoft.BotBuilder.Azure Nuget package
// To use CosmosDb or InMemory storage instead of the default table storage, uncomment the corresponding line below
// var store = new DocumentDbBotDataStore("cosmos db uri", "cosmos db key"); // requires Microsoft.BotBuilder.Azure Nuget package
// var store = new InMemoryDataStore(); // volatile in-memory store
解决方法:
在web.config的配置文件中,添加一行对"AzureWebJobsStorage"的配置:
<configuration>
<appSettings>
<!-- update these with your BotId, Microsoft App Id and your Microsoft App Password-->
<add key="BotId" value="YourBotId" />
<add key="MicrosoftAppId" value="" />
<add key="MicrosoftAppPassword" value="" />
<add key="AzureWebJobsStorage" value="copied value from azure portal" />
</appSettings>
参见:
https://www.it1352.com/1859281.html
https://www.e-learn.cn/topic/1946235
https://docs.microsoft.com/zh-cn/azure/app-service/webjobs-sdk-get-started
Step4:
第1句,这里创建一个Web App,选择Asp.net 4.8。//(Windows平台)
因为该类型与第一步的devkit-bot等app一致。
第2句,现在可能是在SETTINGS——Configuration下面。
Step5:
该项目可编译成正确的的烧写,但无法使用 第5句 提供的命令上传。
首先,到本地Arduino 1.8.15安装路径下,打开arduino.exe,使用该IDE打开工程文件device-app.ino。
然后在“工具”菜单下,选择正确的“开发板”,“Upload Method”和“端口”,并“取得开发板信息”。
最好选择工具栏中的“验证”,即可烧写镜像成功。
参见:
https://www.yiboard.com/thread-1041-1-1.html