VCardParser 1.0.0

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

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

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 VCardEncodeDecode.Helpers;
using VCardEncodeDecode.Models;

Contact contact = new Contact
{
    FirstName = "FirstName",
    LastName = "LastName",
    FormattedName = "FirstName LastName",
    Organization = "Company",
    OrganizationPosition = "Team",
    Title = "Title",
    Photo = "bae64foto",
    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 = "1111111111",
            Type = "Cell"
        },
        new Phone
        {
            Number = "+902222222222",
            Type = "Company"
        },
    }
};

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

// console output
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 net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.
  • net7.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 168 7/29/2024
1.2.3 150 5/23/2024
1.2.2 111 5/23/2024
1.2.1 119 5/17/2024
1.2.0 92 5/14/2024
1.1.4 115 5/13/2024
1.1.3 308 2/23/2024
1.1.2 226 2/23/2024
1.1.1 358 1/18/2024
1.1.0 314 1/18/2024
1.0.1 558 10/16/2023
1.0.0 497 10/16/2023