BOT Framework模拟器停止渲染HTML

问题描述:

Bot Framework突然停止渲染html,我附上截图。什么可能是错误的?我正在使用最新的v3.5.31。我使用了创建新BOT项目时默认可用的Bot应用程序模板。BOT Framework模拟器停止渲染HTML

下面是代码我已经写

[Serializable] 
    public class RootDialog : IDialog<object> 
    { 
     public Task StartAsync(IDialogContext context) 
     { 
      context.Wait(MessageReceivedAsync); 

      return Task.CompletedTask; 
     } 

     private async Task MessageReceivedAsync(IDialogContext context, IAwaitable<object> result) 
     { 
      PromptDialog.Text(context, resumeAfter, "Enter your name", "Didn't get that", 
         3 
        ); 
     } 

     private async Task resumeAfter(IDialogContext context, IAwaitable<string> result) 
     { 
      string answer = await result; 
      await context.PostAsync($"Hello <i><b>{answer}</b></i>"); 
     } 
    } 

enter image description here

+1

有一个关于在网上聊天HTML一些讨论(其中包括仿真器)位置:https://github.com/Microsoft/BotFramework-WebChat/issues/604 –

+0

感谢埃里克,是有没有任何机制可以获取有关这些更改的通知 –

+0

抱歉,目前还没有关于更改通知的机制(除订阅GitHub存储库中的更改外)。 –

据报道,这here。它看起来像是在WebChat控件中设计的(这是Emulator在幕后使用的)。看到网上聊天控制权发生变化:https://github.com/Microsoft/BotFramework-WebChat/commit/a5cd8cffb7a97fb925e4078dbe1085694fa92f80