Creating iCal Files in c#

Solution 1:

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

Solution 2:

The easiest way I've found of doing this is to markup your HTML using microformats.

If you're looking to generate iCalendar files then you could use the hCalendar microformat then include a link such as 'Add to Calendar' that points to:

http://feeds.technorati.com/events/[ your page's full URL including the http:// ]

The Technorati page then parses your page, extracts the hCalendar info and sends the iCalendar file to the client.