Copper.Eic 0.0.8

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

Copper.Eic

⚡Small library that makes it easier to work with EIC codes.

Binaries

Package Version Description
Copper.Eic NuGet Version EIC library

Value type

You can work with EICs by going

var eic = EIC.Parse("10YGB----------A");

var issuingOffice = eic.IssuingOffice;	// 10
var type = eic.GetObjectTypeValue();	// EIC.ObjectTypeValue.Areas
var value = eic.Value;					// "GB"

which can be great in its own right, but there's also fun to be had by using

EIC client

which will happily download ENTSO-E's full catalog of EIC codes like this:

var eics = await EicClient.DownloadAllEicCodesFromEntsoeAsync();

which at the time of writing yields 73985 EIC codes, wrapped in EicDetails objects that hold a bunch of stuff in addition to the actual EIC.

If you're building stuff that is always-on and relies on ENTSO-E's catalog of EIC codes, you might want to introduce

Caching

which can be easily done by registering this bad boy in your container

var cacheDir = Path.Combine(AppContext.BaseDirectory, "data", "eic");

services.AddSingleton(new EicCache(cacheDir));

and then you can have it injected into your own classes, e.g.

public class YourOwnClass(EicCache eicCache) 
{
	public void PrintCodes()
	{
		var eics = eicCache.AllEics;

		// we have all the EICs now 🙂
	}
}

The EIC catalog gets downloaded, and a background worker will periodically (by default once every hour) refresh it.

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.  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
0.0.8 53 10/8/2026
0.0.7 50 10/8/2026
0.0.6 90 10/7/2026
0.0.5 171 9/18/2026
0.0.4 99 9/18/2026
0.0.3 93 9/18/2026
0.0.2 85 9/18/2026
0.0.1 87 9/18/2026