我一直在尝试从保存在本地数据库中的数据创建一个 ics 文件请帮助
请您参考如下方法:
您可以使用开源 DDay.iCal图书馆来做到这一点,我听说过关于这个图书馆的好消息:
DDay.iCal is an iCalendar class library written in C# and based on the RFC 2445 standard. It parses files in the iCalendar format and provides an object-oriented interface to iCalendar components: Event, Todo, TimeZone, Journal, FreeBusy, and Alarm.
还有另一个开源库叫做ICalendar在尚未发布的 CodePlex 上,但您可以下载/查看 source code :
iCalendar is a standard (RFC 2445) for calendar data exchange. The standard is sometimes referred to as "iCal", which also is the name of the Apple, Inc. calendar program (see iCal) that provides one of the implementations of the standard.
