Configuration.Ini 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Configuration.Ini --version 0.1.0
                    
NuGet\Install-Package Configuration.Ini -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Configuration.Ini" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Configuration.Ini" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Configuration.Ini" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Configuration.Ini --version 0.1.0
                    
#r "nuget: Configuration.Ini, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Configuration.Ini&version=0.1.0
                    
Install Configuration.Ini as a Cake Addin
#tool nuget:?package=Configuration.Ini&version=0.1.0
                    
Install Configuration.Ini as a Cake Tool

INI configuration file

Simple INI parser and printer.

Getting started

Use the global using directive for the whole project:

global using Configuration;
global using static Configuration.Prelude;

Or the using directive in a single file:

using Configuration;
using static Configuration.Prelude;

Call Ini function. Pass the IEqualityComparer<string> that will be used to determine equality of keys in the configuration.

var ini = Ini("Configuration.ini");
var ini = Ini("Configuration.ini", StringComparer.OrdinalIgnoreCase);

Sample Configuration.ini content:

[section_one]

# Comment

KeyOne = SectionOne_ValueOne
KeyTwo = SectionOne_ValueTwo

[section_two]

KeyOne = SectionTwo_ValueOne
KeyTwo = SectionTwo_ValueTwo

Get value associated with the section/key combination.

var ini = Ini("Configuration.ini");

var one   = ini["section_one", "KeyOne"];
var two   = ini["section_two", "KeyTwo"];
var three = ini["section_three", "KeyThree"];

Console.WriteLine(one);   // Some(SectionOne_ValueOne)
Console.WriteLine(two);   // Some(SectionTwo_ValueTwo)
Console.WriteLine(three); // None
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.1 201 4/9/2025
0.2.0 163 4/9/2025
0.1.14 171 3/12/2025
0.1.13 172 3/11/2025
0.1.12 152 3/11/2025
0.1.11 158 3/10/2025
0.1.10 170 3/10/2025
0.1.9 133 3/9/2025
0.1.8 187 3/8/2025
0.1.7 213 3/6/2025
0.1.6 205 3/6/2025
0.1.5 209 3/5/2025
0.1.4 204 3/4/2025
0.1.3 200 3/4/2025
0.1.2 203 3/4/2025
0.1.1 194 3/3/2025
0.1.0 95 3/2/2025