VCardParser 1.2.4

dotnet add package VCardParser --version 1.2.4                
NuGet\Install-Package VCardParser -Version 1.2.4                
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.2.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VCardParser --version 1.2.4                
#r "nuget: VCardParser, 1.2.4"                
#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.2.4

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

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.2.4 217 7/29/2024
1.2.3 153 5/23/2024
1.2.2 114 5/23/2024
1.2.1 124 5/17/2024
1.2.0 95 5/14/2024
1.1.4 118 5/13/2024
1.1.3 309 2/23/2024
1.1.2 227 2/23/2024
1.1.1 359 1/18/2024
1.1.0 316 1/18/2024
1.0.1 563 10/16/2023
1.0.0 498 10/16/2023