C# .net 中 ics 文件的解析器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/498938/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 05:44:51  来源:igfitidea点击:

parser for ics files in .net

c#calendaricalendar

提问by thiswayup

I'm trying to figure out the best way take a ics file and convert it into a format I can put into a database. Can anyone recommend how to do this?

我试图找出获取 ics 文件并将其转换为可以放入数据库的格式的最佳方法。任何人都可以推荐如何做到这一点?

回答by Darin Dimitrov

There's an exampleof parsing iCalendar files. It is based on the DDay.iCallibrary.

有一个解析 iCalendar 文件的示例。它基于DDay.iCal库。

回答by Smile4ever

I used https://github.com/der-Daniel/ical.NETwhich is also available on Nuget.

我使用了https://github.com/der-Daniel/ical.NET,它也在 Nuget 上可用。