ComtradeHandler 1.0.3

dotnet add package ComtradeHandler --version 1.0.3
NuGet\Install-Package ComtradeHandler -Version 1.0.3
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="ComtradeHandler" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ComtradeHandler --version 1.0.3
#r "nuget: ComtradeHandler, 1.0.3"
#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.
// Install ComtradeHandler as a Cake Addin
#addin nuget:?package=ComtradeHandler&version=1.0.3

// Install ComtradeHandler as a Cake Tool
#tool nuget:?package=ComtradeHandler&version=1.0.3

Comtrade Handler

NuGet Version

A C# library that allows to read and write Comtrade (IEEE C37.111 / IEC 60255-24) files.

The base for the code was taken from Wisp.Comtrade (MIT). All credits to Esticonv.

The base repository was (I thought) inactive and was .NetFramework4 compatible only (2020). I required .NetCore3 so I migrated it for personal use. The source repository has added some changes since then, and is currently on version v0.9.5 (2022). These (v0.9.5) changes have been migrated to this project as well. The main difference with the original repo, is that this repository uses xUnit and the code has been reformatted with my own .editorConfig rules. I also added some tests with some sample Comtrade files from this repo.

This repository has the following features:

  • Supports 1991, 1999 and 2013 revisions.
  • Supports ASCII and Binary files.
  • Supports .cfg, .dat and .cff files. Does not support .hdr files.

Installation

You can get the library from Nuget via

> dotnet add package ComtradeHandler

Usage

There are some tests that show how to read and write the COMTRADE files.
Both ComtradeHandler.UnitTests\RecordReaderTest.cs and ComtradeHandler.UnitTests\RecordWriterTest.cs are good starting points to see how the code works.
Drop a message or issue if you need help. (:

Contribution

Project is MIT, so all contributions are welcome !

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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.0.3 100 4/2/2024
1.0.2 73 3/17/2024
1.0.2-alpha.2 46 3/17/2024
1.0.2-alpha.1 49 3/17/2024
1.0.1 71 3/17/2024
1.0.0 74 3/12/2024

Supporting .Net8