From c3849a785f4700b7566e4b277ab67f0da0b54776 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:00:05 -0800 Subject: [PATCH] clarify where method comes from --- docs/core/extensions/configuration-providers.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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":::