diff --git a/docs/core/extensions/configuration-providers.md b/docs/core/extensions/configuration-providers.md index bde9102e47ea4..7fcaa185d7dab 100644 --- a/docs/core/extensions/configuration-providers.md +++ b/docs/core/extensions/configuration-providers.md @@ -125,12 +125,15 @@ The previous configuration file loads the following keys with `value`: ### INI configuration provider -The class loads configuration from an INI file at runtime. Install the [`Microsoft.Extensions.Configuration.Ini`](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Ini) NuGet package. +The class loads configuration from an INI file at runtime. The following code clears all the configuration providers and adds the `IniConfigurationProvider` with two INI files as the source: :::code language="csharp" source="snippets/configuration/console-ini/Program.cs" range="1-12,19-23" highlight="7-11"::: +> [!NOTE] +> You must install the [`Microsoft.Extensions.Configuration.Ini`](https://www.nuget.org/packages/Microsoft.Extensions.Configuration.Ini) NuGet package to have access to the method. + An example *appsettings.ini* file with various configuration settings follows: :::code language="ini" source="snippets/configuration/console-ini/appsettings.ini":::