Creating iCal Files in c#

前端 未结 9 1645
日久生厌
日久生厌 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 18:05

    According to RFC-2445, the comment and description fields are TEXT. The rules for a test field are: [1] A single line in a TEXT field is not to exceed 75 octets. [2] Wrapping is achieved by inserting a CRLF followed by whitespace. [3] There are several characters that must be encoded including \ (reverse slash) ; (semicolon) , (comma) and newline. Using a \ (reverse slash) as a delimiter gives \ \; \, \n

    Example: The following is an example of the property with formatted line breaks in the property value:

     DESCRIPTION:Meeting to provide technical review for "Phoenix"
       design.\n Happy Face Conference Room. Phoenix design team
       MUST attend this meeting.\n RSVP to team leader.
    

提交回复
热议问题