Nager.Country 4.3.3

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

🌍 Nager.Country – Worldwide Country Information

Nager.Country provides a comprehensive dataset of worldwide country information, designed for developers who need reliable and structured country-related data.

The dataset includes 250 countries and territories with detailed information such as:

  • ✅ Official country names
  • 🌐 ISO 3166 Alpha-2, Alpha-3, and numeric country codes
  • 💱 Associated currencies and ISO 4217 currency codes
  • 🗣️ Official and spoken languages (ISO 639)
  • 🌍 Continent and subregion classification
  • 🌐 Country borders
  • 🌏 Translations in multiple languages

🌐 Optional Package – Nager.Country.Translation

If you need the translations of the countries you will find in the further nuget package Nager.Country.Translation

Code Examples

Get CountryInfo for Germany via ISO-3166-1 Alpha-2

ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountry("de");
//countryInfo.CommonName -> Germany
//countryInfo.Alpha3Code -> DEU
//countryInfo.NumericCode -> 276
//countryInfo.Region -> Europe
//countryInfo.SubRegion -> WesternEurope
//countryInfo...

Get CountryInfo for Germany via Alpha2Code

ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);
//countryInfo.CommonName -> Germany
//countryInfo.Alpha3Code -> DEU
//countryInfo.NumericCode -> 276
//countryInfo.Region -> Europe
//countryInfo.SubRegion -> WesternEurope
//countryInfo...

Get CountryInfo for Germany via CommonName

ICountryProvider countryProvider = new CountryProvider();
var countryInfo = countryProvider.GetCountryByName("Germany");
//countryInfo.Alpha2Code -> DE
//countryInfo.Alpha3Code -> DEU
//countryInfo.NumericCode -> 276
//countryInfo.Region -> Europe
//countryInfo.SubRegion -> WesternEurope
//countryInfo..

Get all available countries

Retrieve a full list of all 250 countries and territories.

var countryProvider = new CountryProvider();
var countries = countryProvider.GetCountries();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  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 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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Nager.Country:

Package Downloads
VirtoCommerce.Platform.Data

Virto Commerce is a flexible B2B ecommerce solution that offers powerful tools for enterprise business users. https://virtocommerce.com

Nager.Country.Translation

Get country translations and language translations for Nager.Country

VirtoCommerce.CustomerExportImportModule.Core

Package Description

UNLowCoder.Extensions

Extension methods for the UNECE UN/Locodes

N8.NetTools.Localizaton

A NetTools extension for localization

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Nager.Country:

Repository Stars
VirtoCommerce/vc-platform
Virto Commerce B2B Innovation Platform
TabBlazor/TabBlazor
Blazor admin template based on Tabler UI
Version Downloads Last Updated
4.3.3 6,195 9/4/2025
4.3.2 180 9/4/2025
4.3.1 277 9/4/2025
4.3.0 3,920 8/28/2025
4.2.0 40,044 7/7/2025
4.1.0 47,739 6/4/2025
4.0.1 19,663 5/21/2025
4.0.0 1,816,134 4/11/2023
3.1.1 1,397,471 9/30/2021
3.1.0 36,653 7/20/2021
3.0.3 7,517 7/14/2021
3.0.1 153,422 1/27/2021
3.0.0 1,643 1/26/2021
2.0.0 13,904 12/29/2020
1.0.10 19,617 12/13/2020
1.0.9 562 12/9/2020
1.0.8 598 12/3/2020
1.0.4 271,692 6/25/2019
1.0.3 2,778 2/10/2019
1.0.2 805 1/31/2019
1.0.1 796 1/30/2019
1.0.0 1,913 1/29/2019