vCardLib.dll
6.1.0
See the version list below for details.
dotnet add package vCardLib.dll --version 6.1.0
NuGet\Install-Package vCardLib.dll -Version 6.1.0
<PackageReference Include="vCardLib.dll" Version="6.1.0" />
<PackageVersion Include="vCardLib.dll" Version="6.1.0" />
<PackageReference Include="vCardLib.dll" />
paket add vCardLib.dll --version 6.1.0
#r "nuget: vCardLib.dll, 6.1.0"
#:package vCardLib.dll@6.1.0
#addin nuget:?package=vCardLib.dll&version=6.1.0
#tool nuget:?package=vCardLib.dll&version=6.1.0
vCardLib: A vCard (.vcf) Processing Library 📇
About vCardLib 📜
vCardLib is a powerful and flexible .NET library designed to simplify working with vCard (.vcf) files. Whether you're reading, writing, or manipulating contact information, vCardLib provides an easy-to-use API to handle vCard versions 2.1, 3.0, and 4.0 seamlessly. 🌟
Perfect for applications dealing with contact management, address books, or any scenario where vCard files are used, vCardLib ensures your vCard processing is smooth and efficient. 🚀
⚠️ Deprecation Notice
Important: The .NET Standard 1.3 target will be dropped in the next major release. If your project currently targets .NET Standard 1.3, please plan to migrate to .NET Standard 2.0 or a later framework version to continue receiving updates and support.
Features ✨
- Read Multiple Contacts: Parse multiple contacts from a single
.vcffile, stream, or string. - Easy Iteration: Returns contact data as an
IEnumerable<vCard>for effortless looping. - Cross-Version Support: Works with vCard versions 2.1, 3.0, and 4.0.
- Serialization and Deserialization: Easily convert between vCard objects and their string/file representations.
Installation 📦
You can install vCardLib via NuGet using one of the following methods:
Package Manager
Install-Package vCardLib.dll
.NET CLI
dotnet add package vCardLib.dll
Usage 🛠️
Deserialization (Reading vCards)
From a File
string filePath = // path to .vcf file;
IEnumerable<vCard> contacts = vCardDeserializer.FromFile(filePath);
From a Stream
var stream = // generate stream containing serialized vCards
IEnumerable<vCard> contacts = vCardDeserializer.FromStream(stream);
From a String
var contactDetails = @"BEGIN:VCARD
VERSION:2.1
N:John;Doe;;;
END:VCARD";
IEnumerable<vCard> contacts = vCardDeserializer.FromContent(contactDetails);
Serialization (Writing vCards)
Serialize as String
var vcard = new vCard(vCardVersion.V2)
{
FormattedName = "John Doe"
};
var serialized = vCardSerializer.Serialize(vcard);
/*
Output:
BEGIN:VCARD
VERSION:2.1
REV:20230719T001838Z
FN:John Doe
END:VCARD
*/
Serialize with Version Override
var vcard = new vCard(vCardVersion.V2)
{
FormattedName = "John Doe"
};
var serialized = vCardSerializer.Serialize(vcard, vCardVersion.V4);
/*
Output:
BEGIN:VCARD
VERSION:4.0
REV:20230719T001838Z
FN:John Doe
END:VCARD
*/
Branches 🌿
master: Contains the latest breaking changes and features. 🚧
Note: This branch may contain unstable code and is not recommended for production use.v4 Tag: The most recent stable release. ✅
Contributors 🙌
A huge thank you to these amazing contributors who have helped make vCardLib better:
@bolorundurowb, @crowar,
@rmja, @JeanCollas
License 📜
vCardLib is licensed under the MIT License. See the LICENSE file for more details.
Get Started Today! 🎉
Whether you're building a contact management system, integrating vCard support into your app, or just need to process .vcf files, vCardLib is here to make your life easier. Install the package, follow the examples, and start working with vCards like a pro! ⏱️
Happy Coding! 🚀
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard1.3 is compatible. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
| Universal Windows Platform | uap was computed. uap10.0 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 1.3
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.3.0 | 362 | 6/24/2026 |
| 6.2.0 | 2,721 | 4/19/2026 |
| 6.2.0-beta.0 | 60 | 4/18/2026 |
| 6.1.0 | 12,288 | 1/2/2026 |
| 6.0.0 | 33,074 | 9/28/2024 |
| 5.0.2 | 12,480 | 9/21/2024 |
| 5.0.1 | 22,690 | 6/13/2024 |
| 5.0.0 | 13,896 | 2/15/2024 |
| 4.0.4 | 59,467 | 7/19/2023 |
| 4.0.3 | 30,154 | 6/26/2022 |
| 4.0.2 | 12,202 | 6/22/2022 |
| 4.0.1 | 13,460 | 1/3/2022 |
| 4.0.0 | 12,236 | 12/12/2021 |
| 3.0.5 | 12,089 | 1/3/2022 |
| 3.0.4 | 12,069 | 12/12/2021 |
| 3.0.3 | 13,671 | 11/28/2021 |
| 3.0.2 | 12,392 | 10/11/2021 |
| 3.0.1 | 19,516 | 7/4/2020 |
| 3.0.0 | 12,417 | 5/31/2020 |
| 2.2.6 | 12,937 | 8/23/2019 |
- unified and fixed the text escape logic for Title, Note, Text and ProdId
- fixed the incorrect parsing of Photo metadata
- fixed the serialization logic for Birthday, Urls