Creating iCal Files in c#

前端 未结 9 1630
日久生厌
日久生厌 2020-11-29 17:47

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

9条回答
  •  迷失自我
    2020-11-29 17:56

    i know it is too late, but it may help others. in my case i wrote following text file with .ics extension

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//Calendly//EN
    CALSCALE:GREGORIAN
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTAMP:20170509T164109Z
    UID:your id-11273661
    DTSTART:20170509T190000Z
    DTEND:20170509T191500Z
    CLASS:PRIVATE
    DESCRIPTION:Event Name: 15 Minute Meeting\nDate & Time: 03:00pm - 03:15pm (
     Eastern Time - US & Canada) on Tuesday\, May 9\, 2017\n\nBest Phone Number
      To Reach You :: xxxxxxxxx\n\nany "link": https://wwww.yahoo.com\n\n
    SUMMARY:15 Minute Meeting
    TRANSP:OPAQUE
    END:VEVENT
    END:VCALENDAR
    

    it worked for me.

提交回复
热议问题