Skip to content

Commit

Permalink
Increase version
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jan 27, 2021
1 parent 0b67692 commit 15f535c
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net5;net461</TargetFrameworks>
Expand All @@ -13,7 +13,7 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageIcon>icon.png</PackageIcon>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 6 additions & 1 deletion src/Nager.Country/Nager.Country.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageIcon>icon.png</PackageIcon>
<Version>3.0.0</Version>
<Version>3.0.1</Version>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
</ItemGroup>

<ItemGroup>
<Content Include="readme.txt">
<Pack>true</Pack>
<PackagePath>\</PackagePath>
</Content>

<None Include="..\..\doc\icon.png">
<Pack>true</Pack>
<Visible>false</Visible>
Expand Down
45 changes: 45 additions & 0 deletions src/Nager.Country/readme.txt
Original file line number Diff line number Diff line change
@@ -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..

0 comments on commit 15f535c

Please sign in to comment.