From 15f535c79a17f6ded5e621f81c7717ce3bea699a Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Wed, 27 Jan 2021 22:20:05 +0100 Subject: [PATCH] Increase version --- README.md | 6 +-- .../Nager.Country.Translation.csproj | 4 +- src/Nager.Country/Nager.Country.csproj | 7 ++- src/Nager.Country/readme.txt | 45 +++++++++++++++++++ 4 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 src/Nager.Country/readme.txt diff --git a/README.md b/README.md index a8053ab..8a0afc1 100644 --- a/README.md +++ b/README.md @@ -62,9 +62,9 @@ The package is available on [nuget](https://www.nuget.org/packages/Nager.Country PM> install-package Nager.Country ``` -## Examples for the use of the nuget package +## Examples of use -### Get country by Alpha2Code +### Get country via Alpha2Code ```cs ICountryProvider countryProvider = new CountryProvider(); var countryInfo = countryProvider.GetCountry(Alpha2Code.DE); @@ -76,7 +76,7 @@ var countryInfo = countryProvider.GetCountry(Alpha2Code.DE); //countryInfo... ``` -### Get country by CountryName +### Get country via CountryName ```cs ICountryProvider countryProvider = new CountryProvider(); var countryInfo = countryProvider.GetCountryByName("Germany"); diff --git a/src/Nager.Country.Translation/Nager.Country.Translation.csproj b/src/Nager.Country.Translation/Nager.Country.Translation.csproj index f83fcb1..bd858be 100644 --- a/src/Nager.Country.Translation/Nager.Country.Translation.csproj +++ b/src/Nager.Country.Translation/Nager.Country.Translation.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;netstandard2.1;net5;net461 @@ -13,7 +13,7 @@ true true icon.png - 3.0.0 + 3.0.1 diff --git a/src/Nager.Country/Nager.Country.csproj b/src/Nager.Country/Nager.Country.csproj index 48747c7..a1d0214 100644 --- a/src/Nager.Country/Nager.Country.csproj +++ b/src/Nager.Country/Nager.Country.csproj @@ -13,7 +13,7 @@ true true icon.png - 3.0.0 + 3.0.1 @@ -21,6 +21,11 @@ + + true + \ + + true false diff --git a/src/Nager.Country/readme.txt b/src/Nager.Country/readme.txt new file mode 100644 index 0000000..740dbe1 --- /dev/null +++ b/src/Nager.Country/readme.txt @@ -0,0 +1,45 @@ + +████████ ██ ██ █████ ███ ██ ██ ██ ██ ██ ██████ ██ ██ + ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ██ ███████ ███████ ██ ██ ██ █████ ████ ██ ██ ██ ██ + ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ + ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██████ ██████ + + +Thank you for using this project. This project is completely free for commercial use. + +However, if you use our project commercially we would like you to support us with a sponsorship. +The maintenance and support costs time and we would like to ensure this for the future with your help. +You can easily support us via the Github Sponsor function. https://github.com/sponsors/nager + +We would also be very happy about a GitHub Star ★ + +Project Source: https://github.com/nager/Nager.Country + + + +Examples of use: + +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.. \ No newline at end of file