Relative Content

Tag Archive for c#csvhelper

CSVHelper test parsing against multiple classes with attribute maps

I have a large number of CSV files in multiple formats, all dumped together in one folder. The naming convention is of no use in determining the type, and there is no identifier within the file other than the columns themselves. The only test is to see if it successfully maps to one of the mapping classes.

Changing Target-OS to windows doesn’t make csvhelper write records

i’m fairly new to writing with CSVhelper, and I’m trying to make a console application that converts one file’s data into a CSV file, using OpenFileDialog with the sytem.windows.forms assembly. However, when I swap my target OS to windows, (which allows me to use openfiledialog and such) CSVhelper will not create the file in the debug folder (aka where the target output is currently)