Can I modify Azure Bot to VS?

I created a bot using Azure Bot Servicea dialog template.

Then I downloaded the code: here is the zip file

Here are some of the code:

[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);
  }
}

But when I open this solution in VS2015: I can not compile it.

Can you help me make the decision that I download from the Azure Bot Service?

0
source share
1 answer

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

, , , VS, , .

0

Source: https://habr.com/ru/post/1668964/


All Articles