Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating iCal Files in c#

I'm looking for a good method of generating an iCalendar file (*.ics) in c# (asp.net). I've found a couple resources, but one thing that has been lacking is their support for quoted-printable fields - fields that have carriage returns and line feeds.

For example, if the description field isn't encoded properly, only the first line will display and possibly corrupting the rest of the information in the *.ics file.

I'm looking for existing classes that can generate *.ics files and/or a class that can generate quoted-printable fields.

like image 466
Otto Avatar asked Aug 14 '08 04:08

Otto


People also ask

Can I create a ICS file?

If you want to share an appointment with other users you can create an . ics file and attach it to an email message. The recipient can then save the appointment to their calendar. This method works for users on the Office 365 server and those who may use a different calendar/mail server.

What is a .ics file extension?

An ICS file is a file format for iCalendar. You can recognize it by its . ics file extension. This file format allows you to import, export and share calendar entries with other users, publish and approve entries.


1 Answers

I use DDay.Ical, its good stuff. Has the ability to open up an ical file and get its data in a nice object model. It says beta, but it works great for us.

Edit Nov 2016

This library has been deprecated, but was picked up and re-released as iCal.NET by another dev.

Notes about the release: rianjs.net/2016/07/dday-ical-is-now-ical-net

Source on GitHub: github.com/rianjs/ical.net

like image 105
DevelopingChris Avatar answered Sep 20 '22 06:09

DevelopingChris