我创建了一个机器人,使用Azure Bot Service
和 一个对话框模板。
然后,我下载了代码: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 中打开这个解决方案时:我无法编译它。
您能帮我编译从 Azure Bot Service 下载的解决方案吗?