我可以在VS上修改Azure Bot吗? [英] Can i modify Azure Bot at VS?

查看:62
本文介绍了我可以在VS上修改Azure Bot吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Azure Bot Service和对话框模板创建了一个漫游器.

I created a bot, using the Azure Bot Service and a dialog template.

然后,我下载了代码:此处为zip文件

Then, I downloaded the code:here zip file

以下是一些代码:

[Serializable]
public class BasicForm
{
  [Prompt("Hi! What is your {&}?")]
  public string Name { get; set; }

  [Prompt("Please select your favorite car type {||}")]
  public CarOptions Car { get; set; }

  [Prompt("Please select your favorite {&} {||}")]
  public ColorOptions Color { get; set; }

  public static IForm<BasicForm> BuildForm()
  {
    // Builds an IForm<T> based on BasicForm
    return new FormBuilder<BasicForm>().Build();
  }

  public static IFormDialog<BasicForm> BuildFormDialog(FormOptions options = FormOptions.PromptInStart)
  {
    // Generated a new FormDialog<T> based on IForm<BasicForm>
    return FormDialog.FromForm(BuildForm, options);
  }
}

但是,当我在VS2015中打开此解决方案时:我无法对其进行编译.

But, when I open this solution in VS2015: I cannot get it to compile.

您能帮我做一个我从Azure Bot Service下载的解决方案吗?

Can you help me to make a solution I download from the Azure Bot Service compile?

推荐答案

第一步是为Visual Studio安装Bot Framework模板: https://docs.botframework.com/en-us/downloads/

The first step is install Bot Framework template for Visual Studio: https://docs.botframework.com/en-us/downloads/

接下来,我建议您使用此VS模板创建一个示例bot,然后仅使用您下载的该代码更改代码.

Next, what I would recommend to you is create a sample bot using this VS template, then just change the code with this one you've downloaded.

这篇关于我可以在VS上修改Azure Bot吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆