DbfSharp.Core
0.2.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DbfSharp.Core --version 0.2.2
NuGet\Install-Package DbfSharp.Core -Version 0.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="DbfSharp.Core" Version="0.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DbfSharp.Core" Version="0.2.2" />
<PackageReference Include="DbfSharp.Core" />
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 DbfSharp.Core --version 0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DbfSharp.Core, 0.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 DbfSharp.Core@0.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=DbfSharp.Core&version=0.2.2
#tool nuget:?package=DbfSharp.Core&version=0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DbfSharp
A high-performance .NET library and command-line tool for reading dBASE (DBF) files with support for all major DBF versions and memo files.
Features
- Support for all major DBF versions (dBase III, IV, Visual FoxPro, etc.)
- Optimized streaming and memory-efficient processing
- Cross-platform support (Windows, Linux, macOS)
- Both .NET library and command-line tool
- Plugin architecture for custom field parsers
Quick Start
.NET Library
Refer to Core library for a more extensive documentation.
Installation
dotnet add package DbfSharp.Core
Usage
using DbfSharp.Core;
using var reader = DbfReader.Open("data.dbf");
foreach (var record in reader.Records)
{
var name = record.GetValue<string>("NAME");
var birthDate = record.GetValue<DateTime?>("BIRTHDATE");
Console.WriteLine($"{name}, born {birthDate}");
}
Command-Line Tool
Refer to ConsoleAot for a more extensive documentation.
Installation
dotnet tool install -g DbfSharp
Usage
dotnet tool install -g DbfSharp
# read a DBF file, default output to console as a table
dbfsharp read data.dbf
# export to CSV
dbfsharp read data.dbf --format csv --output data.csv
# get file information
dbfsharp info data.dbf --verbose
Supported DBF Formats
- dBase II, III, IV
- FoxBase, FoxPro
- Visual FoxPro
- Memo files (.dbt, .fpt)
- All standard field types (Character, Date, Numeric, Logical, Memo, etc.)
Product | Versions 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 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.
-
net9.0
- System.Text.Encoding.CodePages (>= 9.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.