FileToDataSetLib 1.0.1
dotnet add package FileToDataSetLib --version 1.0.1
NuGet\Install-Package FileToDataSetLib -Version 1.0.1
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="FileToDataSetLib" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FileToDataSetLib" Version="1.0.1" />
<PackageReference Include="FileToDataSetLib" />
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 FileToDataSetLib --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FileToDataSetLib, 1.0.1"
#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 FileToDataSetLib@1.0.1
#: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=FileToDataSetLib&version=1.0.1
#tool nuget:?package=FileToDataSetLib&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FileToDataSetLib 📄➡️📊
Convierte archivos de distintos formatos (`.xlsx`, `.csv`, `.json`, `.xml`, `.zip`) en `DataSet` de forma sencilla y reutilizable.
Diseñado por [Jesus Manuel Ehuan](https://github.com/JesusEhuan) para proyectos modernos en .NET 6+.
---
🚀 Características
✅ Lectura de archivos:
- Excel (`.xls`, `.xlsx`)
- CSV (`.csv`)
- JSON (`.json`)
- XML (`.xml`)
- ZIP con múltiples archivos combinados
✅ Retorna `DataSet` directamente
✅ Modular, extensible, y 100% compatible con:
- APIs en .NET
- Aplicaciones Web
- Consolas o procesos batch
🔧 Instalación
dotnet add package FileToDataSetLib
Ejemplo de uso
using FileToDataSetLib;
using System.Data;
var reader = new FileToDataSetReader();
using var stream = File.OpenRead("documento.xlsx");
DataSet ds = reader.ReadFile(stream, "documento.xlsx");
// Acceder a los datos
foreach (DataTable table in ds.Tables)
{
Console.WriteLine($"Tabla: {table.TableName} - Filas: {table.Rows.Count}");
}
🧩 Estructura Interna
-FileToDataSetReader.cs → Clase orquestadora
-Interfaces/IFileParser.cs → Interfaz base
-Parsers/*Parser.cs → Parsers individuales por tipo
📦 Ejemplo: Uso con ZIP
using var zipStream = File.OpenRead("archivos.zip");
DataSet ds = reader.ReadFile(zipStream, "archivos.zip");
//Todos los archivos dentro del .zip serán procesados si su extensión está soportada.
📜 Licencia
MIT © Jesus Manuel Ehuan
Puedes usarlo, modificarlo y distribuirlo libremente (¡pero dame estrellita si te sirvió! ⭐).
✨ Créditos
Este paquete usa:
ExcelDataReader (MIT)
Newtonsoft.Json (MIT)
💬 ¿Dudas o sugerencias?
Mándame mensaje por GitHub o abre un issue. ¡Estoy abierto a mejoras!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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 was computed. 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.
-
net6.0
- ExcelDataReader (>= 3.7.0)
- ExcelDataReader.DataSet (>= 3.7.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.