当我尝试构建Microsoft bot示例代码时出现CS1061错误,这里的Web文档包含整个类http://docs.botframework.com/sdkreference/csharp/dialogs.html
,错误发生在
var parser = new Chronic.Parser();
var span = parser.Parse(date.Entity + " " + time.Entity);
if (span != null) {
var when = span.Start ?? span.End;
var alarm = new Alarm() { What = title.Entity, When = when.Value };
this.alarmByWhat[alarm.What] = alarm;
string reply = $"alarm {alarm} created";
await context.PostAsync(reply);
}
CS1061:'object'不包含'Start'的定义,也没有扩展方法'Start'接受'object'类型的第一个参数(你是否缺少using指令或汇编引用?)< / p>
如何解决这个问题?