Skip to content

Commit cb44b8a

Browse files
committed
1 parent c7f172a commit cb44b8a

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

src/Nager.Country/Nager.Country.csproj

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,21 @@
88
<PackageProjectUrl>https://github.com/nager/Nager.Country</PackageProjectUrl>
99
<RepositoryUrl>https://github.com/nager/Nager.Country</RepositoryUrl>
1010
<PackageLicenseExpression>MIT</PackageLicenseExpression>
11-
<PackageReleaseNotes>Split the translations in an own package</PackageReleaseNotes>
11+
<PackageReleaseNotes>Add Readme.md to nuget file</PackageReleaseNotes>
1212
<PackageTags>Country CountryInfo ISO3166 ISO-3166-1_Alpha2 ISO-3166-1_Alpha3 ISO639 ISO-639-1 globalization localization</PackageTags>
1313
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1414
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1515
<PackageIcon>icon.png</PackageIcon>
16-
<Version>3.0.1</Version>
16+
<Version>3.0.2</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>
2020
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="LICENSE.md" />
2121
</ItemGroup>
2222

2323
<ItemGroup>
24-
<Content Include="readme.txt">
25-
<Pack>true</Pack>
26-
<PackagePath>\</PackagePath>
27-
</Content>
28-
29-
<None Include="..\..\doc\icon.png">
30-
<Pack>true</Pack>
31-
<Visible>false</Visible>
32-
<PackagePath></PackagePath>
33-
</None>
24+
<Content Include="readme.txt" Pack="true" PackagePath="\" />
25+
<None Include="readme.md" Pack="true" PackagePath="\" />
26+
<None Include="..\..\doc\icon.png" Pack="true" PackagePath="" Visible="false" />
3427
</ItemGroup>
3528
</Project>

src/Nager.Country/readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Nager.Country
2+
3+
The Worldwirde Country Informations are available over the nuget package. The collection contains the Informations for 250 Countries.
4+
5+
> If you need the translations of the countries you will find in the further nuget package [Nager.Country.Translation](https://www.nuget.org/packages/Nager.Country.Translation)
6+
7+
## Code Examples
8+
9+
### Get CountryInfo - Germany via Alpha2Code
10+
11+
ICountryProvider countryProvider = new CountryProvider();
12+
var countryInfo = countryProvider.GetCountry(Alpha2Code.DE);
13+
//countryInfo.CommonName -> Germany
14+
//countryInfo.Alpha3Code -> DEU
15+
//countryInfo.NumericCode -> 276
16+
//countryInfo.Region -> Europe
17+
//countryInfo.SubRegion -> WesternEurope
18+
//countryInfo...
19+
20+
### Get CountryInfo - Germany via CommonName
21+
22+
ICountryProvider countryProvider = new CountryProvider();
23+
var countryInfo = countryProvider.GetCountryByName("Germany");
24+
//countryInfo.Alpha2Code -> DE
25+
//countryInfo.Alpha3Code -> DEU
26+
//countryInfo.NumericCode -> 276
27+
//countryInfo.Region -> Europe
28+
//countryInfo.SubRegion -> WesternEurope
29+
//countryInfo..

0 commit comments

Comments
 (0)