Cake.CsvHelper

Cake addin for working with CSV files using the CSVHelper library

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

dotnet add package Cake.CsvHelper --version 0.3.1

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

Aliases

Contians functionality related to reading and writing CSV files.

ReadCsv

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

WriteCsv

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