用C#来的iCalendar和vCalendar格式导出事件 [英] Export event with C# to iCalendar and vCalendar format

查看:1039
本文介绍了用C#来的iCalendar和vCalendar格式导出事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个项目,我们将支持一个事件导出到Outlook 2007,展望2010年,和iCal的能力。我做了一些研究,发现的iCal(支持iCal的程序),的vCal(支持Outlook)中基本上是相同的东西,从我所看到的。看来,的iCal是基于旧的vCal格式的,所以我想看看有什么我可以在两个实现之间借钱,使其更容易产生的的.ics .vcs 文件。我发现一个C#实现了的vCal 文件的iCal 文件为好。




  1. 有没有人在那里真正的区别,它知道两者之间?好像iCal中有一些更多的属性,是2.0版本,其中的vCal为1.0。


  2. 是否有任何图书馆那里已经办理出口到这两个单独类型,因此我不必写基本相同的事情,或者同时处理一个库?


  3. 是的vCal实施Outlook 2007和Outlook 2010之间有什么不同?




注意:我知道,Outlook还支持iCal(*的.ics)然而格式我们一直要求支持的vCal的创建(* .vcs)除* .ics文件的文件。


解决方案

  1. 堆栈溢出的问题上VCAL和iCal 的区别。 维基百科有一些更多的信息并在这里是
    Google回答关于同一主题质疑。
    基本上iCal中从早期的vCal实现继承。主要变化是信息的量和数据可以采取的格式。


  2. 有关.NET,用道格日的伟大的 DDay.iCal 库。它可以同时导出iCal和VCAL格式。 (只需设置日历版本为1.0,而不是2.0,以便为Outlook 2003 / VCAL兼容性)


  3. Wikipedia文章,对Outlook的实现的iCal标准的一些信息,但并没有对两者之间的变化的任何信息。



I'm working on a project where we'll be supporting the ability to export an event to Outlook 2007, Outlook 2010, and iCal. I've done some research and found that iCal (to support the iCal program) and vCal (to support Outlook) are basically the same thing, from what I've seen. It appears that iCal is based on the old vCal format, so I'm trying to see what I can borrow between the two implementations to make it easier to generate .ics and .vcs files. I've found a C# implementation for a vCal file, and a C# implementation for a iCal file as well.

  1. Is there anyone out there that knows of the true difference between the two? It seems like iCal has a few more properties and is version 2.0 where vCal is 1.0.

  2. Are there any libraries out there that already handle exporting to these two separate types so I don't have to write basically the same thing or a library to handle both?

  3. Is the vCal implementation different between Outlook 2007 and Outlook 2010?

Note: I am aware that Outlook also supports the iCal (*.ics) format however we've been asked to support creation of vCal (*.vcs) files in addition to *.ics files.

解决方案

  1. Stack Overflow Question on the difference between vcal and ical. Wikipedia has some more info and here is a Google Answers question on the same topic. Basically iCal inherits from the earlier vCal implementation. The main changes are the amount of information and the format that that data can take.

  2. For .NET, use Doug Day's great DDay.iCal library. It can export both ical and vcal formats. (Just set the calendar version to 1.0 instead of 2.0 to enable compatability for outlook 2003/vcal)

  3. The Wikipedia article has some information on Outlook's implementation of the iCal standard, but doesn't have any information on changes between the two.

这篇关于用C#来的iCalendar和vCalendar格式导出事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆