Open AndreiOvidiuCiobanu opened 1 year ago
Hi @AndreiOvidiuCiobanu, I got the same problem. Did you manage to find out the problem?
Reproduce:
`using CsvHelper.Configuration; using CsvHelper; using System.Collections; using System.Globalization; using System.Text;
var outputRecords = new List
var myCsvConfiguration = new CsvConfiguration(CultureInfo.InvariantCulture) { Delimiter = ";", ShouldQuote = (fieldArgs) => false };
using (var stream = File.Create("file.txt"))
{
var writer = new StreamWriter(stream, Encoding.GetEncoding(28591));
var csvWriter = new CsvWriter(writer, myCsvConfiguration);
csvWriter.Context.RegisterClassMap
public class ExampleRecordClassMap : ClassMap
Describe the bug Using CsvWriter, with .NET 7.0 and 30.0.1 library version, table header is duplicate each time two files are merged using WriteRecordsAsync()
To Reproduce Provide a small working example that shows the issue.
Expected behavior Only one time when HasHeaderRecord is set up to insert table header.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.