Cake.CsvHelper

Cake addin for working with CSV files using the CSVHelper library

#addin nuget:?package=Cake.CsvHelper&version=0.3.0

<package id="Cake.CsvHelper" version="0.3.0" />

dotnet add package Cake.CsvHelper --version 0.3.0

<PackageReference Include="Cake.CsvHelper" Version="0.3.0" />

Aliases

Contians functionality related to reading and writing CSV files.

ReadCsv

ReadCsv<T>(ICakeContext, FilePath) Reads a CSV file into a C# object.
ReadCsv<T>(ICakeContext, FilePath, ClassMap) Reads a CSV file into a C# object.
ReadCsv<T>(ICakeContext, FilePath, ClassMap, CsvHelperSettings) Reads a CSV file into a C# object.
ReadCsv<T>(ICakeContext, FilePath, CsvHelperSettings) Reads a CSV file into a C# object.

WriteCsv

WriteCsv<T>(ICakeContext, FilePath, List<T>) Writes the records to the speficed file using the specified class mapp and settings.
WriteCsv<T>(ICakeContext, FilePath, List<T>, ClassMap, CsvHelperSettings) Writes the records to the speficed file using the specified class mapp and settings.
WriteCsv<T>(ICakeContext, FilePath, List<T>, CsvHelperSettings) Writes the records to the speficed file using the specified class mapp and settings.
WriteCsv<T>(ICakeContext, FilePath, List<T>, Dictionary<string, string>, CsvHelperSettings) Writes the records to the speficed file using the specified class mapp and settings.