VCardParser 1.1.2

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

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

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 157 7/29/2024
1.2.3 147 5/23/2024
1.2.2 109 5/23/2024
1.2.1 117 5/17/2024
1.2.0 90 5/14/2024
1.1.4 111 5/13/2024
1.1.3 306 2/23/2024
1.1.2 224 2/23/2024
1.1.1 356 1/18/2024
1.1.0 312 1/18/2024
1.0.1 556 10/16/2023
1.0.0 495 10/16/2023