Repository navigation
Read from CSV: move to CsvHelper 34 and net11.0 - #2455
Merged
vladimir-pecanac-main merged 1 commit intoDec 1, 2026
Merged
vladimir-pecanac-main merged 1 commit into
vladimir-pecanac-main merged 1 commit into
Conversation
CsvHelper 34 replaced the reader API, so the sample stopped compiling for anyone who installs the current package (CS1729 on the CsvReader constructor). - CsvReader.FromFile with CsvReaderOptions replaces new CsvReader(reader, configuration) and CsvConfiguration - Person is a [CsvRecord] partial class with [CsvColumn(Index = n)] - PersonMap is a [CsvRecordMap] class over a class we cannot annotate - Tests cover the same traps on the new API: HasHeader left on, comment lines without CommentPrefix, OnRecordError (true now skips), separator detection, FormatProvider and the disposed reader - net10.0 to net11.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CsvHelper 34 replaced the reader API, so the sample no longer compiled against the current package (a reader reported CS1729 on the CsvReader constructor). The sample, its map and its tests now use CsvReader.FromFile, CsvReaderOptions, [CsvRecord], [CsvColumn] and [CsvRecordMap], and the projects target net11.0. Local run: 12 of 12 tests pass.