-
Notifications
You must be signed in to change notification settings - Fork 232
Migrating from earlier versions of ical.net
Rian Stockbower edited this page Apr 7, 2018
·
3 revisions
ical.net v4+ targets .NET Standard 1.3, and migrating to the latest version(s) shouldn't take long if you're targeting .NET Core 1.3+ or .NET Framework 4.6+.
-
Event
is nowCalendarEvent
- At this point, most of the pointless interfaces (
IEvent
,ICalendarCollection
, etc.) are gone. Use the concrete types instead, which is usually a matter of removing theI
prefix.IRecurrencePattern
is nowRecurrencePattern
, for example. - Lots of namespace reorganization. You'll want to use IntelliSense to import the new namespaces. In many cases, the type names haven't changed, but their location has.
- The
ical.net.Collections
assembly is completely gone. - The ANTLR-based parser is gone in favor of chescock's
SimpleDeserializer
which is about twice as fast, and is quite a lot simpler to read and understand. -
CalendarCollection.Load()
loads aCalendarCollection
. -
Calendar.Load
loads aCalendar
. -
CalendarComponent.Load<T>()
loads whatever type you're looking for. - See the release notes for additional v4 details.
Lots of interfaces were deleted. This release was about getting a .NET Core/Standard version published, and having a release that removed a bunch of mostly hidden public
interfaces that shouldn't exist, or should have been internal
.