vCardLib.dll 2.2.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package vCardLib.dll --version 2.2.2                
NuGet\Install-Package vCardLib.dll -Version 2.2.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="2.2.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vCardLib.dll --version 2.2.2                
#r "nuget: vCardLib.dll, 2.2.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.
// Install vCardLib.dll as a Cake Addin
#addin nuget:?package=vCardLib.dll&version=2.2.2

// Install vCardLib.dll as a Cake Tool
#tool nuget:?package=vCardLib.dll&version=2.2.2                

This project contains two sub projects

Build status Coverage Status Mono Book session on Codementor

vCardLibUI

Download vCardLibUI License: MIT

This tool was developed because I recently lost my android phone but was blessed to have created a VCF backup of all my contacts. vCardLibUI loads contacts from a vCard (VCF) file into a table which allows sorting and case insensitive searching. The table shows the surname, the first name, one email address and two phone numbers

vCardLib

NuGet Badge License: MIT

Update: v2.2.0 introduced breaking changes. Details of these changes are on the documentation site

This is the library that powers the VCF Reader. Unlike all other vCard libraries for .NET that I found, this library supports reading multiple contacts from a single vcf file and returns the contact objects in a vCardCollection. The library currently supports only vCard version 2.1 and 3.0 (a curated list of properties supported can be seen on the documentation site).

How to use the library:

First get this package from nuget via your package manager:

Install-Package vCardLib.dll

Then add this using command:

using vCardLib.Deserializers;

In your class you call the static method 'FromFile' and pass a string containing a path to it:

string filePath = //path to vcf file;

vCardCollection contacts = Deserializer.FromFile(filePath);

Or pass a StreamReader object to it:

StreamReader sr = //generate a streamreader somehow;
vCardCollection contacts = Deserializer.FromStreamReader(sr);

Iterate over the collection and pick the vCard objects:

foreach(vCard contact in contacts)
{
  Console.WriteLine(contact.FormattedName);
}

complete documentation on github.io

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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.0.0 1,585 9/28/2024
5.0.2 213 9/21/2024
5.0.1 2,619 6/13/2024
5.0.0 1,948 2/15/2024
4.0.4 11,990 7/19/2023
4.0.3 11,336 6/26/2022
4.0.2 465 6/22/2022
4.0.1 1,687 1/3/2022
4.0.0 427 12/12/2021
3.0.5 333 1/3/2022
3.0.4 320 12/12/2021
3.0.3 1,925 11/28/2021
3.0.2 550 10/11/2021
3.0.1 7,520 7/4/2020
3.0.0 640 5/31/2020
2.2.6 1,160 8/23/2019
2.2.5 1,634 2/8/2018
2.2.4 1,012 1/1/2018
2.2.3 1,079 11/28/2017
2.2.2 1,381 8/10/2017
2.2.1 1,192 3/17/2017
2.2.0 1,176 2/26/2017
2.1.2 1,299 12/19/2016
2.1.1 1,050 12/14/2016
2.1.0 1,446 9/15/2016
2.0.0 1,108 6/11/2016
1.1.3 1,044 6/6/2016
1.1.2 1,023 6/1/2016
1.1.1 1,165 5/9/2016
1.1.0 1,309 4/27/2016
1.0.0 1,871 4/23/2016

Adds support for encoding when reading vcf files and optional encoding when writing the vcf files