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()
{
return new FormBuilder<BasicForm>().Build();
}
public static IFormDialog<BasicForm> BuildFormDialog(FormOptions options = FormOptions.PromptInStart)
{
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?
source
share