Microsoft.Extensions.Configuration.Ini 10.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
Microsoft.AspNetCore.All
124
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
125
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
127
Microsoft.AspNetCore.All
Microsoft.AspNetCore.All
131
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.
122
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.
125
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.
127
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.
129
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.
130
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.
132
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.
134
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.
136
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.
138
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.
142
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/1016eae4004686f7fdad13f5c329f63bbae1f3a1
133

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

Version Downloads Last updated
11.0.0-preview.4.26230.115 6 05/13/2026
11.0.0-preview.3.26207.106 17 04/14/2026
11.0.0-preview.2.26159.112 20 03/12/2026
11.0.0-preview.1.26104.118 25 02/13/2026
10.0.8 5 05/13/2026
10.0.7 17 04/21/2026
10.0.6 18 04/14/2026
10.0.5 20 03/13/2026
10.0.4 18 03/12/2026
10.0.3 22 02/13/2026
10.0.2 26 01/15/2026
10.0.1 49 12/10/2025
10.0.0 66 11/12/2025
10.0.0-rc.2.25502.107 83 10/15/2025
10.0.0-rc.1.25451.107 78 09/10/2025
10.0.0-preview.7.25380.108 93 08/14/2025
10.0.0-preview.6.25358.103 95 07/16/2025
10.0.0-preview.5.25277.114 91 06/06/2025
10.0.0-preview.4.25258.110 105 05/15/2025
10.0.0-preview.3.25171.5 109 04/12/2025
10.0.0-preview.2.25163.2 108 03/28/2025
10.0.0-preview.1.25080.5 101 04/01/2025
9.0.16 5 05/13/2026
9.0.15 15 04/14/2026
9.0.14 21 03/12/2026
9.0.13 31 02/13/2026
9.0.12 32 01/14/2026
9.0.11 54 11/12/2025
9.0.10 95 10/15/2025
9.0.9 68 09/10/2025
9.0.8 83 08/05/2025
9.0.7 94 07/09/2025
9.0.6 76 06/12/2025
9.0.5 96 05/16/2025
9.0.4 107 04/10/2025
9.0.3 112 03/29/2025
9.0.2 104 03/29/2025
9.0.1 108 03/29/2025
9.0.0 95 11/14/2024
9.0.0-rc.2.24473.5 93 10/21/2024
9.0.0-rc.1.24431.7 109 10/21/2024
9.0.0-preview.7.24405.7 126 08/22/2024
9.0.0-preview.6.24327.7 152 07/20/2024
9.0.0-preview.5.24306.7 131 07/20/2024
9.0.0-preview.4.24266.19 144 07/20/2024
9.0.0-preview.3.24172.9 144 07/20/2024
9.0.0-preview.2.24128.5 122 07/20/2024
9.0.0-preview.1.24080.9 119 07/20/2024
8.0.0 113 07/20/2024
8.0.0-rc.2.23479.6 128 07/20/2024
8.0.0-rc.1.23419.4 157 07/20/2024
8.0.0-preview.7.23375.6 161 07/20/2024
8.0.0-preview.6.23329.7 132 07/20/2024
8.0.0-preview.5.23280.8 130 07/20/2024
8.0.0-preview.4.23259.5 154 07/20/2024
8.0.0-preview.3.23174.8 134 07/20/2024
8.0.0-preview.2.23128.3 122 07/20/2024
8.0.0-preview.1.23110.8 119 07/20/2024
7.0.0 146 07/20/2024
7.0.0-rc.2.22472.3 140 07/20/2024
7.0.0-rc.1.22426.10 132 07/20/2024
7.0.0-preview.7.22375.6 135 07/20/2024
7.0.0-preview.6.22324.4 142 07/20/2024
7.0.0-preview.5.22301.12 127 07/20/2024
7.0.0-preview.4.22229.4 125 07/20/2024
7.0.0-preview.3.22175.4 135 07/20/2024
7.0.0-preview.2.22152.2 128 07/20/2024
7.0.0-preview.1.22076.8 121 07/20/2024
6.0.1 91 11/14/2024
6.0.0 124 07/20/2024
6.0.0-rc.2.21480.5 128 07/20/2024
6.0.0-rc.1.21451.13 114 07/20/2024
6.0.0-preview.7.21377.19 118 07/20/2024
6.0.0-preview.6.21352.12 146 07/20/2024
6.0.0-preview.5.21301.5 123 07/20/2024
6.0.0-preview.4.21253.7 129 07/20/2024
6.0.0-preview.3.21201.4 122 07/20/2024
6.0.0-preview.2.21154.6 123 07/20/2024
6.0.0-preview.1.21102.12 132 07/20/2024
5.0.0 123 07/20/2024
5.0.0-rc.2.20475.5 112 07/20/2024
5.0.0-rc.1.20451.14 117 07/20/2024
5.0.0-preview.8.20407.11 128 07/20/2024
5.0.0-preview.7.20364.11 151 07/20/2024
5.0.0-preview.6.20305.6 120 07/20/2024
5.0.0-preview.5.20278.1 119 07/20/2024
5.0.0-preview.4.20251.6 118 07/20/2024
5.0.0-preview.3.20215.2 154 07/20/2024
5.0.0-preview.2.20160.3 112 07/20/2024
5.0.0-preview.1.20120.4 119 07/20/2024
3.1.32 128 07/20/2024
3.1.31 120 07/20/2024
3.1.30 125 07/20/2024
3.1.29 120 07/20/2024
3.1.28 113 07/20/2024
3.1.27 123 07/20/2024
3.1.26 124 07/20/2024
3.1.25 115 07/20/2024
3.1.24 104 07/20/2024
3.1.23 117 07/20/2024
3.1.22 113 07/20/2024
3.1.21 115 07/20/2024
3.1.20 118 07/20/2024
3.1.19 124 07/20/2024
3.1.18 112 07/20/2024
3.1.17 140 07/20/2024
3.1.16 114 07/20/2024
3.1.15 122 07/20/2024
3.1.14 122 07/20/2024
3.1.13 130 07/20/2024
3.1.12 122 07/20/2024
3.1.11 129 07/20/2024
3.1.10 124 07/20/2024
3.1.9 113 07/20/2024
3.1.8 153 07/20/2024
3.1.7 130 07/20/2024
3.1.6 123 07/20/2024
3.1.5 129 07/20/2024
3.1.4 116 07/20/2024
3.1.3 119 07/20/2024
3.1.2 146 07/20/2024
3.1.1 127 07/20/2024
3.1.0 120 07/20/2024
3.1.0-preview3.19553.2 117 07/20/2024
3.1.0-preview2.19525.4 126 07/20/2024
3.1.0-preview1.19506.1 136 07/20/2024
3.0.3 114 07/20/2024
3.0.2 113 07/20/2024
3.0.1 117 07/20/2024
3.0.0 125 07/20/2024
3.0.0-rc1.19456.10 123 07/20/2024
3.0.0-preview9.19423.4 140 07/20/2024
3.0.0-preview8.19405.4 127 07/20/2024
3.0.0-preview7.19362.4 120 07/20/2024
3.0.0-preview6.19304.6 129 07/20/2024
3.0.0-preview5.19227.9 122 07/20/2024
3.0.0-preview4.19216.2 132 07/20/2024
3.0.0-preview3.19153.1 120 07/20/2024
3.0.0-preview.19074.2 121 07/20/2024
3.0.0-preview.18572.1 134 07/20/2024
2.2.0 121 07/20/2024
2.2.0-preview3-35497 105 07/20/2024
2.2.0-preview2-35157 126 07/20/2024
2.2.0-preview1-35029 108 07/20/2024
2.1.1 116 07/20/2024
2.1.0 122 07/20/2024
2.1.0-rc1-final 135 07/20/2024
2.1.0-preview2-final 126 07/20/2024
2.1.0-preview1-final 111 07/20/2024
2.0.2 132 07/20/2024
2.0.1 115 07/20/2024
2.0.0 113 07/20/2024
2.0.0-preview2-final 127 07/20/2024
2.0.0-preview1-final 140 07/20/2024
1.1.2 137 07/20/2024
1.1.1 121 07/20/2024
1.1.0 126 07/20/2024
1.1.0-preview1-final 143 07/20/2024
1.0.2 112 07/20/2024
1.0.1 125 07/20/2024
1.0.0 119 07/20/2024
1.0.0-rc2-final 121 07/20/2024
1.0.0-rc1-final 129 07/20/2024