Microsoft.Extensions.Configuration.Ini 9.0.8

About

INI configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read configuration parameters from INI files. You can use IniConfigurationExtensions.AddIniFile extension method on IConfigurationBuilder to add INI configuration provider to the configuration builder.

How to Use

using System;
using Microsoft.Extensions.Configuration;

class Program
{
    static void Main()
    {
        // Build a configuration object from INI file
        IConfiguration config = new ConfigurationBuilder()
            .AddIniFile("appsettings.ini")
            .Build();

        // Get a configuration section
        IConfigurationSection section = config.GetSection("Settings");

        // Read configuration values
        Console.WriteLine($"Server: {section["Server"]}");
        Console.WriteLine($"Database: {section["Database"]}");
    }
}

To run this example, include an appsettings.ini file with the following content in your project:

[Settings]
Server=example.com
Database=Northwind

You can include a configuration file using a code like this in your .csproj file:

<ItemGroup>
  <Content Include="appsettings.ini">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </Content>
</ItemGroup>

Additional Documentation

Feedback & Contributing

Microsoft.Extensions.Configuration.Ini is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Ini.

Packages Downloads
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
61
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
60
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
57
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download. This package was built from the source at: https://github.com/aspnet/Universe/tree/244e037a222a7cd0a17feafb7f3a625fde40de97
57
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
57
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
56
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
56
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
54
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
54
Microsoft.AspNetCore.All
Provides a default set of APIs for building an ASP.NET Core application, and also includes API for third-party integrations with ASP.NET Core. This package requires the ASP.NET Core runtime. This runtime is installed by the .NET Core SDK, or can be acquired separately using installers available at https://aka.ms/dotnet-download.
53

https://go.microsoft.com/fwlink/?LinkID=799421

Version Downloads Last updated
10.0.0-rc.2.25502.107 7 10/15/2025
10.0.0-rc.1.25451.107 3 09/11/2025
10.0.0-preview.7.25380.108 7 08/14/2025
10.0.0-preview.6.25358.103 11 07/16/2025
10.0.0-preview.5.25277.114 12 06/12/2025
10.0.0-preview.4.25258.110 20 05/15/2025
10.0.0-preview.3.25171.5 21 04/15/2025
10.0.0-preview.2.25163.2 21 03/23/2025
10.0.0-preview.1.25080.5 25 02/27/2025
9.0.10 3 10/15/2025
9.0.9 3 09/11/2025
9.0.8 10 08/06/2025
9.0.7 9 07/17/2025
9.0.6 12 06/13/2025
9.0.5 17 05/16/2025
9.0.4 17 04/09/2025
9.0.3 19 03/13/2025
9.0.2 18 02/16/2025
9.0.1 25 01/17/2025
9.0.0 34 11/13/2024
9.0.0-rc.2.24473.5 31 10/09/2024
9.0.0-rc.1.24431.7 34 09/17/2024
9.0.0-preview.7.24405.7 39 08/14/2024
9.0.0-preview.6.24327.7 45 07/21/2024
9.0.0-preview.5.24306.7 32 06/13/2024
9.0.0-preview.4.24266.19 35 06/08/2024
9.0.0-preview.3.24172.9 46 04/13/2024
9.0.0-preview.2.24128.5 46 03/19/2024
9.0.0-preview.1.24080.9 43 03/02/2024
8.0.0 53 11/23/2023
8.0.0-rc.2.23479.6 55 10/19/2023
8.0.0-rc.1.23419.4 46 09/13/2023
8.0.0-preview.7.23375.6 47 08/26/2023
8.0.0-preview.6.23329.7 54 07/24/2023
8.0.0-preview.5.23280.8 50 08/08/2023
8.0.0-preview.4.23259.5 47 06/27/2023
8.0.0-preview.3.23174.8 53 08/22/2023
8.0.0-preview.2.23128.3 49 08/11/2023
8.0.0-preview.1.23110.8 46 08/11/2023
7.0.0 55 08/09/2023
7.0.0-rc.2.22472.3 45 08/05/2023
7.0.0-rc.1.22426.10 42 08/26/2023
7.0.0-preview.7.22375.6 56 08/24/2023
7.0.0-preview.6.22324.4 48 08/08/2023
7.0.0-preview.5.22301.12 47 08/21/2023
7.0.0-preview.4.22229.4 52 08/24/2023
7.0.0-preview.3.22175.4 47 08/09/2023
7.0.0-preview.2.22152.2 54 07/04/2023
7.0.0-preview.1.22076.8 46 07/11/2023
6.0.2-mauipre.1.22102.15 50 09/23/2023
6.0.2-mauipre.1.22054.8 49 08/05/2023
6.0.1 31 11/13/2024
6.0.0 67 08/02/2023
6.0.0-rc.2.21480.5 46 08/23/2023
6.0.0-rc.1.21451.13 49 08/21/2023
6.0.0-preview.7.21377.19 49 08/25/2023
6.0.0-preview.6.21352.12 50 09/23/2023
6.0.0-preview.5.21301.5 50 08/21/2023
6.0.0-preview.4.21253.7 39 08/17/2023
6.0.0-preview.3.21201.4 45 08/22/2023
6.0.0-preview.2.21154.6 54 08/17/2023
6.0.0-preview.1.21102.12 53 07/30/2023
5.0.0 48 08/03/2023
5.0.0-rc.2.20475.5 42 07/06/2023
5.0.0-rc.1.20451.14 64 08/05/2023
5.0.0-preview.8.20407.11 42 08/14/2023
5.0.0-preview.7.20364.11 52 08/24/2023
5.0.0-preview.6.20305.6 48 08/21/2023
5.0.0-preview.5.20278.1 56 07/05/2023
5.0.0-preview.4.20251.6 51 07/24/2023
5.0.0-preview.3.20215.2 42 08/07/2023
5.0.0-preview.2.20160.3 58 08/07/2023
5.0.0-preview.1.20120.4 38 08/23/2023
3.1.32 59 08/19/2023
3.1.31 57 08/05/2023
3.1.30 56 08/03/2023
3.1.29 57 07/27/2023
3.1.28 52 08/12/2023
3.1.27 53 08/05/2023
3.1.26 54 08/18/2023
3.1.25 47 08/04/2023
3.1.24 55 08/04/2023
3.1.23 48 07/26/2023
3.1.22 56 08/04/2023
3.1.21 58 07/17/2023
3.1.20 52 08/10/2023
3.1.19 46 08/05/2023
3.1.18 51 08/03/2023
3.1.17 54 08/16/2023
3.1.16 49 09/24/2023
3.1.15 49 07/28/2023
3.1.14 51 08/06/2023
3.1.13 54 08/08/2023
3.1.12 52 08/14/2023
3.1.11 57 08/21/2023
3.1.10 55 08/04/2023
3.1.9 49 07/28/2023
3.1.8 53 08/20/2023
3.1.7 55 08/14/2023
3.1.6 52 08/10/2023
3.1.5 52 08/07/2023
3.1.4 46 08/03/2023
3.1.3 50 08/05/2023
3.1.2 47 08/08/2023
3.1.1 54 08/06/2023
3.1.0 60 07/20/2023
3.1.0-preview3.19553.2 49 08/24/2023
3.1.0-preview2.19525.4 45 08/24/2023
3.1.0-preview1.19506.1 45 08/22/2023
3.0.3 53 08/25/2023
3.0.2 45 08/22/2023
3.0.1 49 07/27/2023
3.0.0 43 08/23/2023
3.0.0-rc1.19456.10 53 08/15/2023
3.0.0-preview9.19423.4 53 08/16/2023
3.0.0-preview8.19405.4 56 08/03/2023
3.0.0-preview7.19362.4 52 08/17/2023
3.0.0-preview6.19304.6 42 08/22/2023
3.0.0-preview5.19227.9 49 08/23/2023
3.0.0-preview4.19216.2 60 08/23/2023
3.0.0-preview3.19153.1 56 08/26/2023
3.0.0-preview.19074.2 42 08/24/2023
3.0.0-preview.18572.1 52 08/23/2023
2.2.0 50 08/08/2023
2.2.0-preview3-35497 55 08/07/2023
2.2.0-preview2-35157 56 08/06/2023
2.2.0-preview1-35029 49 08/07/2023
2.1.1 52 06/07/2022
2.1.0 50 08/11/2023
2.1.0-rc1-final 39 08/11/2023
2.1.0-preview2-final 49 08/11/2023
2.1.0-preview1-final 52 08/07/2023
2.0.2 56 07/16/2023
2.0.1 61 08/05/2023
2.0.0 50 08/05/2023
2.0.0-preview2-final 50 08/12/2023
2.0.0-preview1-final 57 08/10/2023
1.1.2 61 08/07/2023
1.1.1 50 08/15/2023
1.1.0 50 07/17/2023
1.1.0-preview1-final 51 08/08/2023
1.0.2 50 08/17/2023
1.0.1 50 08/24/2023
1.0.0 51 08/11/2023
1.0.0-rc2-final 52 07/16/2023
1.0.0-rc1-final 48 08/07/2023