vCardLib.dll 3.0.1

vCardLib is a .NET library to help developers read either single or multiple contacts from a single vcf file or StreamReader.

Install-Package vCardLib.dll -Version 3.0.1
dotnet add package vCardLib.dll --version 3.0.1
<PackageReference Include="vCardLib.dll" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add vCardLib.dll --version 3.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

vCardLib

Build status Coverage Status NET Standard NuGet Badge License: MIT

Documentation can be found at documentation site

T this library supports reading multiple contacts from a single vcf file, a stream or a contact string and returns the contact objects in a List. 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

or

dotnet add package vCardLib.dll

For Deserialization

Import the namespaces:

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;

var contacts = Deserializer.FromFile(filePath);

Or read your contacts from a Stream:

var stream = //generate a stream somehow;
var contacts = Deserializer.FromStream(stream);

Or read your contacts from a string:

var contactDetails = @"BEGIN:VCARD
N:John;Doe;;;
END:VCARD";
var contacts = Deserializer.FromString(contactDetails);

Iterate over the contact collection and pick the vCard objects:

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

complete documentation on github.io

vCardLib

Build status Coverage Status NET Standard NuGet Badge License: MIT

Documentation can be found at documentation site

T this library supports reading multiple contacts from a single vcf file, a stream or a contact string and returns the contact objects in a List. 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

or

dotnet add package vCardLib.dll

For Deserialization

Import the namespaces:

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;

var contacts = Deserializer.FromFile(filePath);

Or read your contacts from a Stream:

var stream = //generate a stream somehow;
var contacts = Deserializer.FromStream(stream);

Or read your contacts from a string:

var contactDetails = @"BEGIN:VCARD
N:John;Doe;;;
END:VCARD";
var contacts = Deserializer.FromString(contactDetails);

Iterate over the contact collection and pick the vCard objects:

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

complete documentation on github.io

Release Notes

- add in mewer deserializer methods
- improve serialization

  • .NETStandard 1.3

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.1 23 7/4/2020
3.0.0 135 5/31/2020
2.2.6 314 8/23/2019
2.2.5 888 2/8/2018
2.2.4 362 1/1/2018
2.2.3 395 11/28/2017
2.2.2 628 8/10/2017
2.2.1 572 3/17/2017
2.2.0 508 2/26/2017
2.1.2 614 12/19/2016
2.1.1 423 12/14/2016
2.1.0 628 9/15/2016
2.0.0 467 6/11/2016
1.1.3 389 6/6/2016
1.1.2 388 6/1/2016
1.1.1 455 5/9/2016
1.1.0 537 4/27/2016
1.0.0 528 4/23/2016