vCardLib.dll
5.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package vCardLib.dll --version 5.0.2
NuGet\Install-Package vCardLib.dll -Version 5.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="vCardLib.dll" Version="5.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="vCardLib.dll" Version="5.0.2" />
<PackageReference Include="vCardLib.dll" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add vCardLib.dll --version 5.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: vCardLib.dll, 5.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package vCardLib.dll@5.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=vCardLib.dll&version=5.0.2
#tool nuget:?package=vCardLib.dll&version=5.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
vCardLib: A vCard (.vcf) Processing Library
<br/>
This library provides functionality for working with vCard files.
Features:
- Read multiple contacts from a single vcf file, stream, or contact string.
- Returns contact data as an
IEnumerableobject for easy iteration. - Supports reading and writing vCard versions 2.1, 3.0, and 4.0.
Branches:
- master: This branch contains the latest breaking changes and features. For the most recent stable release (v4), please see the v4 tag.
Important: The master branch may contain unstable code and is not recommended for production use.
Improvements:
- Clarity: I've rephrased some sentences to be more clear and concise.
- Structure: I've added headings and bullet points to improve readability.
- Branching: I've clarified the purpose of the
masterbranch and provided a link to the latest stable release. - Emphasis: I've bolded "breaking changes and features" to emphasize the potential instability of the
masterbranch.
I hope this improved markdown is helpful!
How to use this library:
First get this package from nuget via your package manager:
Install-Package vCardLib.dll
or
dotnet add package vCardLib.dll
For Deserialization
Deserialize from a file
string filePath = // path to vcf file;
IEnumerable<vCard> contacts = vCardDeserializer.FromFile(filePath);
Deserialize from a Stream
var stream = // generate stream containing serialized vcards
IEnumerable<vCard> contacts = vCardDeserializer.FromStream(stream);
Deserialize from a string
var contactDetails = @"BEGIN:VCARD
VERSION:2.1
N:John;Doe;;;
END:VCARD";
IEnumerable<vCard> contacts = vCardDeserializer.FromContent(contactDetails);
For Serialization
Serialize as string
var vcard = new vCard(vCardVersion.v2)
{
FormattedName = "John Doe"
};
var serialized = vCardSerializer.Serialize(vcard);
/*
BEGIN:VCARD
VERSION:2.1
REV:20230719T001838Z
FN:John Doe
END:VCARD
*/
Serialize with an override
This allows a vcard to get serialized to a different version
var vcard = new vCard(vCardVersion.v2)
{
FormattedName = "John Doe"
};
var serialized = vCardSerializer.Serialize(vcard, vCardVersioon.v4);
/*
BEGIN:VCARD
VERSION:4.0
REV:20230719T001838Z
FN:John Doe
END:VCARD
*/
Contributors
A huge thank you to these wonderful people who took time to contribute to this project.
<br/>
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 1.3
- System.ValueTuple (>= 4.5.0)
-
.NETStandard 2.0
- System.ValueTuple (>= 4.5.0)
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 | 1,145 | 6/24/2026 |
| 6.2.0 | 2,835 | 4/19/2026 |
| 6.2.0-beta.0 | 66 | 4/18/2026 |
| 6.1.0 | 13,169 | 1/2/2026 |
| 6.0.0 | 33,326 | 9/28/2024 |
| 5.0.2 | 12,529 | 9/21/2024 |
| 5.0.1 | 22,874 | 6/13/2024 |
| 5.0.0 | 13,940 | 2/15/2024 |
| 4.0.4 | 61,451 | 7/19/2023 |
| 4.0.3 | 30,454 | 6/26/2022 |
| 4.0.2 | 12,243 | 6/22/2022 |
| 4.0.1 | 13,503 | 1/3/2022 |
| 4.0.0 | 12,277 | 12/12/2021 |
| 3.0.5 | 12,131 | 1/3/2022 |
| 3.0.4 | 12,111 | 12/12/2021 |
| 3.0.3 | 13,713 | 11/28/2021 |
| 3.0.2 | 12,446 | 10/11/2021 |
| 3.0.1 | 19,562 | 7/4/2020 |
| 3.0.0 | 12,459 | 5/31/2020 |
| 2.2.6 | 12,978 | 8/23/2019 |
Loading failed
- improved model documentation