VCardParser 1.1.3

dotnet add package VCardParser --version 1.1.3
NuGet\Install-Package VCardParser -Version 1.1.3
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="VCardParser" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VCardParser --version 1.1.3
#r "nuget: VCardParser, 1.1.3"
#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 VCardParser as a Cake Addin
#addin nuget:?package=VCardParser&version=1.1.3

// Install VCardParser as a Cake Tool
#tool nuget:?package=VCardParser&version=1.1.3

VCardParser

You can perform VCard decode and encode operations by using the contact class in the project.

The nuget packages is available here

How to use

  • NuGet Command: Install-Package VCardParser

  • Example

using VCardParser.Helpers;
using VCardParser.Models;

Contact contact = new Contact
{
    FirstName = "FirstName",
    LastName = "LastName",
    FormattedName = "FirstName LastName",
    Organization = "Company",
    OrganizationPosition = "Team",
    Title = "Title",
    Photo = "base64foto",
    Emails = new List<EMail>
    {
        new EMail
        {
            Address = "email@mail.com",
            Type = "Home"
        },
        new EMail
        {
            Address = "email2@mail.com",
            Type = "Company"
        },
    },
    Phones = new List<Phone>
    {
        new Phone
        {
            Number = "01111111111",
            Type = "Cell"
        },
        new Phone
        {
            Number = "+902222222222",
            Type = "Company"
        },
    }
};

// encode contact model for creating vcard file
var encodedVCard = contact.EncodeVCard();

Console.WriteLine(encodedVCard);
// exporting vcf file
File.WriteAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "filename.vcf"), encodedVCard);

// decode vcard file from vcf file to contact model
encodedVCard.DecodeVCard();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.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
1.1.3 268 2/23/2024
1.1.2 195 2/23/2024
1.1.1 321 1/18/2024
1.1.0 281 1/18/2024
1.0.1 523 10/16/2023
1.0.0 456 10/16/2023