MVFC.DataX.Providers.FileSystem 1.2.2

dotnet add package MVFC.DataX.Providers.FileSystem --version 1.2.2
                    
NuGet\Install-Package MVFC.DataX.Providers.FileSystem -Version 1.2.2
                    
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="MVFC.DataX.Providers.FileSystem" Version="1.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MVFC.DataX.Providers.FileSystem" Version="1.2.2" />
                    
Directory.Packages.props
<PackageReference Include="MVFC.DataX.Providers.FileSystem" />
                    
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 MVFC.DataX.Providers.FileSystem --version 1.2.2
                    
#r "nuget: MVFC.DataX.Providers.FileSystem, 1.2.2"
                    
#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 MVFC.DataX.Providers.FileSystem@1.2.2
                    
#: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=MVFC.DataX.Providers.FileSystem&version=1.2.2
                    
Install as a Cake Addin
#tool nuget:?package=MVFC.DataX.Providers.FileSystem&version=1.2.2
                    
Install as a Cake Tool

MVFC.DataX.Providers.FileSystem

🇧🇷 Leia em Português

CI codecov NuGet Downloads License Platform

File System providers for MVFC.DataX supporting flat files. Currently implements CSV parsing via CsvHelper and JSONL (JSON lines) parsing.

This package is part of the MVFC.DataX suite. For the full documentation and more examples, please check the main repository README.

Installation

dotnet add package MVFC.DataX.Providers.FileSystem

Available Classes

Class Format Description
CsvDataReader<T> .csv Reads CSV files sequentially leveraging CsvHelper internally.
CsvDataWriter<T> .csv Thread-safe CSV writer leveraging a SemaphoreSlim. Implements IAsyncDisposable.
JsonlDataReader<T> .jsonl Line-by-line JSON reading. Gracefully handles blank lines.
JsonlDataWriter<T> .jsonl Thread-safe JSONL writer using SemaphoreSlim and StreamWriter. Implements IAsyncDisposable.

API Signatures

CSV

public CsvDataReader(string filePath, CsvConfiguration? configuration = null)
public CsvDataWriter(string filePath, CsvConfiguration? configuration = null, bool append = false) : IAsyncDisposable

JSONL

public JsonlDataReader(string filePath, JsonSerializerOptions? options = null)
public JsonlDataWriter(string filePath, JsonSerializerOptions? options = null, bool append = false) : IAsyncDisposable

Usage / Example

CSV Pipeline

using System.Globalization;
using CsvHelper.Configuration;
using MVFC.DataX.Pipeline;
using MVFC.DataX.Providers.FileSystem;

var config = new CsvConfiguration(CultureInfo.InvariantCulture) { HasHeaderRecord = true };

var reader = new CsvDataReader<Person>("input.csv", config);

// Use 'using' or 'await using' for writers as they hold file handles
await using var writer = new CsvDataWriter<Person>("output.csv", config, append: false);

var pipeline = PipelineBuilder.ReadFrom(reader)
    .WriteTo(writer)
    .Build();

await pipeline.RunAsync(cancellationToken);

JSONL Pipeline

using System.Text.Json;
using MVFC.DataX.Pipeline;
using MVFC.DataX.Providers.FileSystem;

var options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };

var reader = new JsonlDataReader<LogEntry>("logs.jsonl", options);

await using var writer = new JsonlDataWriter<LogEntry>("filtered_logs.jsonl", options);

var pipeline = PipelineBuilder.ReadFrom(reader)
    // You can filter data fluently
    .TransformWith(new FilterTransformer<LogEntry>(log => log.Level == "ERROR"))
    .WriteTo(writer)
    .Build();

await pipeline.RunAsync(cancellationToken);
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.2 104 8/28/2026
1.2.0 122 7/9/2026
1.1.0 112 7/9/2026
1.0.1 115 7/9/2026