SmartPipe.Extensions.Csv 2.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package SmartPipe.Extensions.Csv --version 2.2.0
                    
NuGet\Install-Package SmartPipe.Extensions.Csv -Version 2.2.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SmartPipe.Extensions.Csv" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartPipe.Extensions.Csv" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="SmartPipe.Extensions.Csv" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SmartPipe.Extensions.Csv --version 2.2.0
                    
#r "nuget: SmartPipe.Extensions.Csv, 2.2.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SmartPipe.Extensions.Csv@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SmartPipe.Extensions.Csv&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=SmartPipe.Extensions.Csv&version=2.2.0
                    
Install as a Cake Tool

SmartPipe.Extensions.Csv

Strict, bounded CSV file sources and sinks for SmartPipe.Core, backed by CsvHelper 33.1.0.

Installation

dotnet package add SmartPipe.Extensions.Csv

Strict file profile

CsvPipelineDefinitionBuilder.FromCsvFile and ToCsvFile use a fixed RFC4180-style profile with a single-character delimiter, quoted multiline fields, explicit character limits, strict decoding, and file-only ownership. Definitions do no I/O; each run receives fresh runtime-owned components and a fresh CsvHelper mapping context. SkipAndLog requires an explicit borrowed ILoggerFactory and never logs row, header, field, or payload text.

The source bounds logical records, fields, and columns before CsvHelper maps them. Recovery occurs only after a proven record boundary; invalid encoding, header failure, ambiguous quoted EOF, I/O, and cancellation remain terminal. Activation and enumeration cancellation stay linked for the full enumeration lifetime.

The strict file component owns its internal CsvReader/CsvWriter wrapper, bounded bridge or record writer, and file reader/stream. Those wrappers are kept open for component cleanup, which releases each owned resource once (using atomic exchange where cleanup paths can converge), attempts every release, and keeps a primary operation failure ahead of cleanup failures. This is an internal lifecycle guarantee; the public API exposes no stream or leaveOpen option.

The sink stages one character-bounded record, supports create or append, validates append encoding and header semantics, preserves an existing BOM exactly once (including BOM-only files), and rolls a failed record back to its file checkpoint. It does not promise whole-file atomicity or concurrent same-file writers.

Mapping and compatibility

Use CsvMapRegistration<T>.Auto, From<TMap>(), or FromFactory(...). A map factory creates a fresh map per activated run; caller-owned mutable maps are not retained.

The legacy CsvFileSource<T>, CsvFileSink<T>, and CsvTransform<TInput,TOutput> types remain valid in this leaf assembly and are exposed from SmartPipe.Extensions through type forwarding, which retains its direct CsvHelper dependency while those forwarders exist. New code should reference this package directly.

Trimming and NativeAOT

CsvHelper object mapping uses reflection, expression trees, and compiled delegates. This package intentionally does not advertise blanket NativeAOT compatibility; heed the RUC/RDC diagnostics on executable mapping entry points.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SmartPipe.Extensions.Csv:

Package Downloads
SmartPipe.Extensions

Compatibility facade and convenience bundle for SmartPipe.Core and its runtime integration packages. New applications should reference specific SmartPipe.Extensions.* packages. Retained 2.1.2 APIs use type forwarding or the frozen legacy DI/Hosting/Health cluster; removed HTTP/Polly APIs require migration and recompilation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 154 10/13/2026
2.2.0 965 10/7/2026

First standalone release in 2.2.0. CSV source, sink and transform identities move from the facade with type forwarding; strict bounded file APIs are available. CsvHelper reflection paths do not carry a blanket trimming or NativeAOT guarantee.